-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more Markdown backends #179
base: main
Are you sure you want to change the base?
Conversation
testcase for the various markdown renderers: https://www.hacksoc.org/news/2021-05-25-moving-to-libera.html, specifically does |
That was in fact the article that made me aware of the problem, and I did use it while setting up the new backends 😅 |
i definitely thought it had been brought up somewhere, yeah, but i couldn't find any references to it – i guess maybe it got slacked |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace moment
|
||
``` | ||
# Equivalent; markdown2 is the default backend | ||
hacksoc_org run | ||
hacksoc_org run --markdown markdown2 | ||
hacksoc_org run --markdown markdown2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
super minor nitpick
hacksoc_org run --markdown markdown2 | |
hacksoc_org run --markdown markdown2 |
``` | ||
#### Markdown2 (Current default) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``` | |
#### Markdown2 (Current default) | |
``` | |
#### Markdown2 (Current default) |
Fork of the CommonMark reference implementation, maintained by GitHub to provide [GFM](https://github.github.com/gfm/) features. Only provides syntax highlighing for the client-side, by adding a (eg.) `lang="py"` attribute to `<pre>` blocks for a JavaScript library to parse and highlight. | ||
#### CommonMark |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fork of the CommonMark reference implementation, maintained by GitHub to provide [GFM](https://github.github.com/gfm/) features. Only provides syntax highlighing for the client-side, by adding a (eg.) `lang="py"` attribute to `<pre>` blocks for a JavaScript library to parse and highlight. | |
#### CommonMark | |
Fork of the CommonMark reference implementation, maintained by GitHub to provide [GFM](https://github.github.com/gfm/) features. Only provides syntax highlighing for the client-side, by adding a (eg.) `lang="py"` attribute to `<pre>` blocks for a JavaScript library to parse and highlight. | |
#### CommonMark |
**Does not support tables**. | ||
#### Mistletoe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
**Does not support tables**. | |
#### Mistletoe | |
**Does not support tables**. | |
#### Mistletoe |
Gives an example integration of Pygments for syntax highlighing, adapted into [`mistletoe_pygments_renderer.py`](../hacksoc_org/markdown/mistletoe_pygments_renderer.py) | ||
#### Markdown-it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gives an example integration of Pygments for syntax highlighing, adapted into [`mistletoe_pygments_renderer.py`](../hacksoc_org/markdown/mistletoe_pygments_renderer.py) | |
#### Markdown-it | |
Gives an example integration of Pygments for syntax highlighing, adapted into [`mistletoe_pygments_renderer.py`](../hacksoc_org/markdown/mistletoe_pygments_renderer.py) | |
#### Markdown-it |
Adds the following (CommonMark-compliant) Markdown backends:
cmark
commonmark
mistletoe
markdown-it-py
At some point in the future, the goal will be to switch to one of these (or another CommonMark implementation). This PR does not intend to change the default backend, but to provide the tools to evaluate a replacement for a future PR to switch to.
TODO
docs/
Pygments
) is preferred to simply tagging<pre>
blocks for a JavaScript-based highlighter to process on the client-side.