import MarkupIt from "@honkit/markup-it" ; import markdownSyntax from "@honkit/markup-it/syntaxes/markdown" ; import htmlSyntax from "@honkit/markup-it/syntaxes/html" ; const markdown = new MarkupIt ( markdownSyntax ) ; const html = new MarkupIt ( htmlSyntax ) ; param { string } src return { string } function convertMdToHTMLBlock ( src ) { const content = markdown . toContent ( src ) ; const textHtml = html . toText ( content ) ; return textHtml ; } param { string } src return { string } function convertMdToHTMLInline ( src ) { const content = markdown . toInlineContent ( src ) ; const textHtml = html . toInlineText ( content ) ; return textHtml ; } export default { block : convertMdToHTMLBlock , inline : convertMdToHTMLInline , } ;