cryogen-project / cryogen-project/cryogen-markdown

Feature Request: Evaluate Clojure code from within Markdown

Open
#12 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Clojure
Stars
7
Forks
9
PR merge metrics
No merged PRs in 30d

Description

I'd like the ability to evaluate Clojure from directly within a markdown page.

As an example, I'd like to generate a chart using Incanter. Rather than save the chart as an image file, and include in the markdown file in the usual way, I'd like to rather include the Clojure code to generate the chart and have that code evaluated, along with the markdown, to produce an HTML page including the chart.

An example I can point to, in a different language domain, is [knitr for R](http://yihui.name/knitr/). Write some markdown, include some R code, "knit" the page and output HTML.

In fact, [knitr already supports Clojure code.](https://github.com/kindlychung/knitr-examples/commit/9a69ea4850c803fc03b0f7963357f7c4c2fb033d) This is a potential workaround, but it's not a particularly nice tool chain. I'd much prefer to generate a Cryogen markdown page, which also evaluated my Clojure code.

Maybe this is already possible, and I'm just too new to Clojure to intuitively understand how to achieve it. If it is already possible, it'd be great to have some documentation discussing how.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.