(type egg)
(signature "cmark egg")
(timestamp 1612269487)
(sxml ((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/cmark" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.")) (section 2 "cmark" (toc) (section 3 "Description" (p "CHICKEN Scheme bindings to the cmark C library. " (link "http://commonmark.org/" "CommonMark") " is a more highly specified version of Markdown, including most the niceties found in modern Markdown parsers.")) (section 3 "Installation" (p "You " (b "must") " also install " (link "https://github.com/jgm/cmark") ", since the egg uses the libcmark.so shared library - If your package manager doesn't provide a cmark package, you can install from source using the usual \"make && make install\" dance.")) (section 3 "API" (def (sig (procedure "(commonmark->html str #!key (safe #t))" (id commonmark->html))) (p "Converts a CommonMark string to a HTML string. By default, any raw HTML code blocks or unsafe links (eg, \"javascript:...\") will be removed. If you'd like to use inline HTML, set the keyword parameter 'safe' to #f."))) (section 3 "Example" (highlight scheme "(use cmark)\n\n(commonmark->html \"# Hello world!\")\n\n;; for embedded HTML support, turn off safe mode:\n(commonmark->html \"<script>alert('hello');</script>\" safe: #f)")) (section 3 "Source code / Issues" (p (link "https://github.com/caolan/chicken-cmark"))))))
