@yozora/html-paragraph
Version:
render Yozora Markdown AST node `IParagraph` into HTML string
12 lines (8 loc) • 332 B
JavaScript
Object.defineProperty(exports, '__esModule', { value: true });
function renderParagraph(paragraph, renderChildren) {
const children = renderChildren(paragraph.children);
return `<p class="yozora-paragraph">${children}</p>`;
}
exports["default"] = renderParagraph;
exports.renderParagraph = renderParagraph;
;