'Can remark skip the html and just parse the markdown to html and keep the previous html?

I use remark to convert markdown into HTML string just like this:

const processedContent = await remark()
        .use(html)
        .process(matterResult.content)
const contentHtml = processedContent.toString()

but it will not keep the previous html in markdown.

example input:

#markdown
<p>html</p>

example output

<p>#markdown</p>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source