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

Is it possible to allow just a subset of markdown? #704

Closed
boop5 opened this issue Jan 2, 2016 · 3 comments
Closed

Is it possible to allow just a subset of markdown? #704

boop5 opened this issue Jan 2, 2016 · 3 comments

Comments

@boop5
Copy link

boop5 commented Jan 2, 2016

title. In my case I want to disable images.

@dead-claudia
Copy link

Does this work?

var marked = require("marked")
function MyRenderer() {
    marked.Renderer.apply(this, arguments)
}

MyRenderer.prototype = Object.create(marked.Renderer.prototype)

MyRenderer.prototype.image = function () {
    return "" // don't print images
}

@Feder1co5oave
Copy link
Contributor

See #420 or use #660 if you just want to disable the parsing of some type of feature, so that the source will appear at the output as-is.

@joshbruce
Copy link
Member

Closing to consolidate issues

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

4 participants