http-server-md
Version:
A configurable HTTP server that serves markdown files rendered to HTML with markdown-it
13 lines (12 loc) • 545 B
JavaScript
/**
* Render data shared by all types of content.
*
* @typedef {object} Sermit~BaseRenderData
* @property {string} path - page URL, and path from content root.
* @property {string} parentPath - URL to parent directory; empty string if
* `inRoot` to allow direct rendering as `href` attribute.
* @property {Sermit~RenderType} renderType - @see {@link Sermit~RenderType}
* @property {SermitConfig} config - active `httpmd` configuration data
* without `state`.
* @property {boolean} inRoot - if true, `path` is the content root.
*/