markdown
Markdown to HTML converter. Transform markdown text or files into HTML with headings, code blocks, lists and emphasis.
Install
ppm install markdown
Usage Example
uses markdown;
var html := ToHTML('# Hello World' + #10#10 +
'This is **bold** and *italic*.' + #10#10 +
'- Item one' + #10 +
'- Item two');
WriteLn(html);
// Convert a whole file
ToHTMLFile('README.md', 'README.html');
// Wrap in a full page
var content := ToHTML(file_utils.ReadFile('post.md'));
var fullPage := '' + content + '';
file_utils.WriteFile('post.html', fullPage);
Features
H1/H2/H3 heading conversion
Bold (**text**) and italic (*text*)
Fenced code blocks (```lang)
Unordered lists (- item)
File-to-file conversion with ToHTMLFile()