Hi all,

I've published Phoedown, an FFI to hoedown, the standards compliant, fast, 
secure Markdown
processing library written in C. 

- https://github.com/PierceNg/Phoedown
- https://github.com/hoedown/hoedown

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:

    <pre><code class="language-smalltalk">Transcript show: &#39;Happy New 
Year!&#39;; cr
    </code></pre>
 
Pierce


Reply via email to