UNPKG

markdown-folder-to-html

Version:

Convert a folder with files and markdown documents to an HTML site

15 lines (13 loc) 257 B
const contentS = "<!--CONTENT-->"; const navS = "<!--NAV-->"; export default function renderPage( template: string, navmenu: string, content: string ) { return template .split(navS) .join(navmenu) .split(contentS) .join(content); }