restructured
A reStructuredText parser for JavaScript.
Online Demo
demo.
Example
> npm install -g restructured> echo 'Hello, world' | restructured | jq
Consider the following script.
; const parsed = restructured; console;
The above script outputs the following JSON.
Progress
- Document Structure
- Document
- Sections
- Transitions
- Body Elements
- Paragraphs
- Bullet Lists
- Enumerated Lists
- Definition Lists
- Field Lists
- Bibliographic Fields
- RCS Keywords
- Option Lists
- Literal Blocks
- Indented Literal Blocks
- Quoted Literal Blocks
- Line Blocks
- Block Quotes
- Doctest Blocks
- Tables
- Grid Tables
- Simple Tables
- Explicit Markup Blocks
- Footnotes
- Auto-Numbered Footnotes
- Auto-Symbol Footnotes
- Mixed Manual and Auto-Numbered Footnotes
- Citations
- Hyperlink Targets
- Anonymous Hyperlinks
- Directives
- Substitution Definitions
- Comments
- Footnotes
- Implicit Hyperlink Targets
- Inline Markup
- Emphasis
- Strong Emphasis
- Interpreted Text
- Inline Literals
- Hyperlink References
- Embedded URIs and Aliases
- Inline Internal Targets
- Footnote References
- Citation References
- Substitution References
- Standalone Hyperlinks
License
MIT