Skip to content
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

Using markdown-it instead of marked? #1934

Open
rauschma opened this issue Jul 2, 2017 · 7 comments
Open

Using markdown-it instead of marked? #1934

rauschma opened this issue Jul 2, 2017 · 7 comments

Comments

@rauschma
Copy link

rauschma commented Jul 2, 2017

This may not be technically feasible, but have you considered using markdown-it instead of marked?

Rationale – there are several things that marked can’t handle:

Escaping backticks via multiple backticks: `` `backticks` ``

Inside tables: `a | b`

* 2. Numbers after bullets (always changed to “1.”)
@rauschma
Copy link
Author

rauschma commented Jul 2, 2017

Additionally, markdown-it’s plugins are great; they provide lots of useful features: https://www.npmjs.com/browse/keyword/markdown-it-plugin

@imagejan
Copy link

imagejan commented Oct 31, 2017

Also, it would be nice to have a more powerful markdown parser that allows adding css attributes with syntax like {.my-customclass} markdown paragraph to bring css into markdown when using reveal.js via reveal-md or gitpitch.com.

@bnjmnt4n
Copy link
Collaborator

bnjmnt4n commented Feb 6, 2018

I think this would be a great idea: markdown-it allows more flexibility and has plugins as well. However I don't think any of the contributors have time to implement such a major change - which might also have significant impact to users' current presentations. @hakimel any opinions on this?

@hakimel
Copy link
Owner

hakimel commented Feb 8, 2018

markdown-it looks like a great option. Would be nice to be able to drop our custom syntax for adding classes/attributes and replace it with a plugin. That said it doesn't seem like the benefit is strong enough to make it worth spending the time switching right now. Happy to re-evaluate this in the future though.

@noraj
Copy link

noraj commented Feb 16, 2019

Markdown-it is more robust, flexible, has more options, more performant, support GRF, CommonMark, etc. I saw a lot of project switching from markred to markdown-it when, they understood most of the markdown parsing bug were coming from the buggy marked.

@marcvangend
Copy link
Contributor

I would be interested in this if if means getting more control over the resulting html output. For instance, as far as I know I currently can't add a class attribute to a table.

@pinage404
Copy link

VSCode Plugin seems to use markdown-it to render the markdown

https://github.com/evilz/vscode-reveal/blob/1d2e60fa73be495e5745a8f51e401aea039ad3b3/src/Markdown-it.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants