tclsoldout(3tcl) | 3tcl | tclsoldout(3tcl) |
TclSoldout
—
Markdown parser
package require TclSoldout
[0.1.1]
::soldout::escape_html
string
::soldout::mkd2html
[-discount
| -natext
]
markdown
::soldout::mkd2xhtml
[-discount
| -natext
]
markdown
The TclSoldout
extension is a Tcl binding
to libsoldout, a lightweight C library that can parse Markdown.
The ::soldout::escape_html
command replace
'<', '>', '&' and '"' in the string
with their HTML entities and return the modified text.
The ::soldout::mkd2html
command parse
markdown text and return HTML (self-closing tags are
rendered like this: <br>).
The ::soldout::mkd2xhtml
command parse
markdown text and return XHTML (self-closing tags
like: <br />).
The options are as follows:
-discount
and PHP-Markdown-like tables.
-natext
TclSoldout
was written by
Svyatoslav Mishyn
<juef@openmailbox.org>.
September 11, 2015 | Debian |