Skip to content

Commit 0141684

Browse files
committed
bumped up version
1 parent b6956b3 commit 0141684

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,17 @@ This can also be used to add preprocessor transformers. For example, if we wante
226226
"<p>&lt;h1&gt;escaped&lt;/h1&gt;foo bar <a href='http://test'>text</a></p>"
227227
```
228228

229+
### Codeblock callbacks
230+
231+
It's possible to pass a `:codeblock-callback` function to the parser that will
232+
postprocess the code as follows:
233+
234+
```clojure
235+
(markdown/md-to-html-string "```python\ndef f(x):\n return x * 2\n```"
236+
:codeblock-callback (fn
237+
[code language]
238+
(trim (clygments/highlight code language :html))))
239+
```
229240

230241
## Usage ClojureScript
231242

project.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject markdown-clj "1.11.4"
1+
(defproject markdown-clj "1.11.5"
22
:description "Markdown parser"
33
:url "https://github.com/yogthos/markdown-clj"
44
:license {:name "Eclipse Public License"

0 commit comments

Comments
 (0)