I've published Phoedown, an FFI to hoedown, the standards compliant, fast, secure Markdown processing library written in C. This blog is powered by Phoedown.
A simple example:
| md |
md := (FileSystem memory / 'somefile.md')
writeStreamDo: [ :ws |
ws nextPutAll:
'
```smalltalk
Transcript show: ''Happy New Year!''; cr
' ]; contents. HdHtmlRenderer new setMarkdownExtension: HdMarkdownExtensions FencedCode; setMarkdownExtension: HdMarkdownExtensions NoIntraEmphasis; render: md
This is the output:
```html
<pre><code class="language-smalltalk">Transcript show: 'Happy New Year!'; cr
</code></pre>
The output in HTML:
Transcript show: 'Happy New Year!'; cr
Tags: