Skip to content

feat: add reStructuredText parser (sections, code-block, links) - #22

Merged
zerochae merged 1 commit into
masterfrom
feat/rst-parser
Jul 23, 2026
Merged

feat: add reStructuredText parser (sections, code-block, links)#22
zerochae merged 1 commit into
masterfrom
feat/rst-parser

Conversation

@zerochae

Copy link
Copy Markdown
Owner

Summary

Adds a reStructuredText (filetype=rst) parser. rST sections are underline-based, and — unlike markdown/org — the heading level isn't fixed by the character but
by the order each adornment first appears, which this parser tracks.

What it indexes

  • Sections — underlined (or over/underlined) titles; level follows first-appearance order of the adornment char (=, -, ~, ...)
  • Code.. code-block:: <lang> / .. code:: directives
  • Links`text <url>`_ (and anonymous `..`__)

Wiring

  • Registered in parser.lua and default config.filetypes
  • examples/demo.rst, README, and doc/toc.txt updated

Testing

  • make check: 149 tests pass (5 new rST cases), stylua clean.

@zerochae zerochae self-assigned this Jul 23, 2026
@zerochae
zerochae merged commit f4b6751 into master Jul 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant