http-server-md
Version:
A configurable HTTP server that serves markdown files rendered to HTML with markdown-it
10 lines (9 loc) • 308 B
JavaScript
/**
* Content rendering hint provided to page render methods.
*
* - `md`: indicates ordinary Markdown with mixed content.
* - `md-code`: indicates a single fenced code block
* - `data`: indicates a data-only render, with no pre-rendered HTML
*
* @typedef {'md'|'md-code'|'data'} Sermit~RenderType
*/