feat: add reStructuredText (.rst) support - #66
Open
tryh4rd-26 wants to merge 1 commit into
Open
Conversation
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Works on Issue #38
Hello!
this PR adds support for parsing restructuredtext (
.rst) documents into anydoc's internal document model so they can render cleanly to github-flavored markdown.added
Format::RsttoFormatenum and mapped.rstextensionsadded rst parser module in
src/formats/rst.rshandling:=,-,~, etc.)**), italic (*), code (`code`/:literal:), links, inline roles (:strong:,:emphasis:,:sub:,:sup:,:ref:)::and.. code-block:: <lang>).. list-table::directives.. note::,.. warning::,.. important::,.. tip::,.. image::,.. container::, etc.)This works on issue feat proposal: Restructured Text #38
i tested locally using standard test suite and dedicated rst integration tests:
also verified conversion against test rst samples:
you can find the local test sample files used here:
https://drive.proton.me/urls/Z9V4V2T69C#IxEQKKw1K9sI
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.