Skip to content

scicloj/janqua

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Janqua

A Quarto extension for evaluating Jank code blocks in documents.

Write Jank code in .qmd files and get live results — code output, SVG, charts (Plotly, Vega-Lite, etc.), diagrams (Mermaid, Graphviz), markdown tables, and more. Uses the Kindly convention for rendering, compatible with the Clojure ecosystem.

Experimental — this project is at an early stage. Feedback and ideas are welcome via GitHub issues or the Scicloj Zulip chat.

Read the documentation →

Quick start

Install the extension in your project:

quarto add scicloj/janqua

Create hello.qmd:

---
title: "Hello Jank"
filters:
  - jank
---

```{.clojure .jank}
(+ 1 2 3)
```

```{.clojure .jank}
^:kind/hiccup
[:div {:style "color: coral; font-size: 24px;"} "Hello from Jank!"]
```

Render it:

quarto render hello.qmd

Or use live preview:

quarto preview hello.qmd

Prerequisites

  • Quarto
  • Jank
  • Babashka + bbin
  • clj-nrepl-eval: bbin install https://github.com/bhauman/clojure-mcp-light.git --tag v0.2.1 --as clj-nrepl-eval --main-opts '["-m" "clojure-mcp-light.nrepl-eval"]'

License

MIT

Releases

No releases published

Packages

 
 
 

Contributors