remarkjs / react-markdown

Markdown component for React
https://remarkjs.github.io/react-markdown/
MIT License
13.26k stars 876 forks source link

rst support #830

Closed 100tomer closed 6 months ago

100tomer commented 6 months ago

Initial checklist

Problem

It will be great to have rst (reStructuredText) supported too like markdown is supported. (maybe this belong in a new npm package but it felt like something this npm package might do great

Solution

The markdown parser can maybe detect if the input is rst and then parse it differently then markdown

Alternatives

Currently the only solution is to convert rst files to markdown files (the only good convertor I found is pandoc)

ChristianMurphy commented 6 months ago

Welcome @100tomer! 👋 react-markdown is a project for parsing markdown. reStructuredText is not markdown.

It is possible to build something like that, and even to leverage unified js (https://unifiedjs.com/, the foundation of this project) But that is a non-goal for react-markdown.

If you have questions on how to connect reStructuredText with syntax trees or unified, feel free to reach out at https://github.com/orgs/syntax-tree/discussions or https://github.com/orgs/unifiedjs/discussions !

github-actions[bot] commented 6 months ago

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.