https://github.com/octree/markright
Markdown Parser Writen In Swift
https://github.com/octree/markright
functional-programming ios macos markdown parsec parser swift
Last synced: about 2 months ago
JSON representation
Markdown Parser Writen In Swift
- Host: GitHub
- URL: https://github.com/octree/markright
- Owner: octree
- Created: 2018-04-13T18:00:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-29T17:01:25.000Z (over 6 years ago)
- Last Synced: 2025-08-25T02:18:10.238Z (about 2 months ago)
- Topics: functional-programming, ios, macos, markdown, parsec, parser, swift
- Language: Swift
- Homepage:
- Size: 2.37 MB
- Stars: 32
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MarkRight
A simple Markdown Parser written in `swift`, Powered by [ParserCombinator](https://github.com/octree/ParserCombinator)
## Ugly Demo


## Supported grammars
* Preliminaries
- [x] Characters and lines
- [x] Tabs
- [x] Insecure characters
* Blocks and inlines
- [x] Precedence
- [x] Container blocks and leaf blocks
* Leaf blocks
- [x] Thematic breaks
- [x] ATX headings
- [ ] Setext headings
- [x] Indented code blocks
- [x] Fenced code blocks
- [ ] HTML blocks
- [ ] Link reference definitions
- [x] Paragraphs
- [x] Blank lines
- [x] Tables (extension)
* Container blocks
- [x] Block quotes
- [x] List items
- [x] Task list items (extension)
- [x] Lists
* Inlines
- [x] Backslash escapes
- [x] Entity and numeric character references
- [x] Code spans
- [x] Emphasis and strong emphasis
- [ ] Strikethrough (extension)
- [x] Links
- [x] Images
- [ ] Autolinks
- [ ] Autolinks (extension)
- [ ] Raw HTML
- [x] Disallowed Raw HTML (extension)
- [x] Hard line breaks
- [x] Soft line breaks
- [x] Textual content