markdown(3tcl) | Markdown to HTML Converter | markdown(3tcl) |
markdown - Converts Markdown text to HTML
package require Tcl 8.5
package require Markdown 1.1.1
package require textutil ?0.8?
::Markdown::convert markdown
::Markdown::register langspec converter
::Markdown::get_lang_counter
::Markdown::reset_lang_counter
The package Markdown provides a command to convert Markdown annotated text into HMTL.
The converter supports two types of syntax highlighting for fenced code blocks: highlighting via a registered converter (see ::Markdown::register), or pure JavaScript highlighting, e.g. via "highlight.js", where the language specifier used in the markup is set as CSS class of the "code" element in the returned markup.
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category textutil of the Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist]. Please also report any ideas for enhancements you may have for either package and/or documentation.
When proposing code changes, please provide unified diffs, i.e the output of diff -u.
Note further that attachments are strongly preferred over inlined patches. Attachments can be made by going to the Edit form of the ticket immediately after its creation, and then using the left-most button in the secondary navigation bar.
Text processing
1.1.1 | tcllib |