nasa-gibs/worldview-components

Render Markdown Directly in Components

localjo opened this issue · 1 comments

Instead of converting markdown files into HTML strings to render markdown into components, it would be nice to use something like react-markdown directly. The would be safer, and allow us to skip the step we currently have of generating intermediary HTML files, in favor of using the markdown files directly.

This will be a fairly simple change, but since we're using <sub>/<sup> tags in our markdown, this is pending a fix for an issue that react-markdown has with rendering some inline HTML tags: rexxars/commonmark-react-renderer#9

Closing this issue since components will be deprecated soon. We can re-open this issue in the worldview repository if need be.