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

Provide some configurations for enabling/disabling some marked features #21

Closed
thomasfr opened this issue Jan 10, 2012 · 2 comments
Closed

Comments

@thomasfr
Copy link

Sometimes you do not want to parse and convert all markdown into html.
Maybe someone do not want links,etc. to be parsed. node-discount does it this way.

Kind regards

@chjj
Copy link
Member

chjj commented Jan 10, 2012

This is a good idea. Something I've considered for a while: #5

I want to do it in a way that allows marked to be more hackable instead of adding options. I'll leave this open for now.

@chjj
Copy link
Member

chjj commented Jan 8, 2013

Although marked has become more extensible in the past year, it's still not perfect extensibility-wise.

Maybe someone do not want links

For example, if you don't want links parsed you could do:

marked.InlineLexer.rules.link = function() {};

This has been discussed in a lot of issues now, although this is one of the first issues that mentioned it, I'm going to close it for now. When this does happen it will be discussed.

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

No branches or pull requests

2 participants