readmeio / markdown

ReadMe's flavored Markdown parser and React-based rendering engine.
https://rdmd.readme.io
ISC License
33 stars 9 forks source link

feat: add html to hast #901

Closed kellyjosephprice closed 2 months ago

kellyjosephprice commented 3 months ago
PR App RM-9820

🧰 Changes

Adds a htmlToHast function.

This will be used in indexing,

mdx -> rmdx.run(rmdx.compile(mdx)) ->
       react -> renderToSring(react) ->
       html -> htmlToHast(html) ->
       hast -> plain(hast) -> indexable plain text!

🧬 QA & Testing

rafegoldberg commented 2 months ago

This PR was released!

🚀 Changes included in v6.75.0-beta.54