xxxxxxxxxx
/+dub.sdl:
dependency "vibe-d" version="~>0.8.6"
+/
import std;
import vibe.textfilter.markdown;
void main()
{
auto settings = new MarkdownSettings;
with(MarkdownFlags) {
settings.flags = backtickCodeBlocks | vanillaMarkdown | tables;
}
const HTMLTemplate = "<html>...<body>{{body}}</body></html>";
auto fileContent = `# My first DIP
Test _content_.`;
auto htmlContent = fileContent.filterMarkdown(settings);
HTMLTemplate.replace("{{body}}",htmlContent).writeln;
}