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

FR: Option to disable images #719

Closed
boop5 opened this issue Feb 14, 2016 · 5 comments
Closed

FR: Option to disable images #719

boop5 opened this issue Feb 14, 2016 · 5 comments

Comments

@boop5
Copy link

boop5 commented Feb 14, 2016

title.

I want to disable parsing images

![enter image description here](... "enter image title here")

should not be parsed

@Feder1co5oave
Copy link
Contributor

See #420

@sahil290791
Copy link

Any updates on how can we disable parsing images?

@Feder1co5oave
Copy link
Contributor

No commits were made since my last comment. That method I linked is still the easiest one to achieve what you need.

@joshbruce
Copy link
Member

#989

@styfle
Copy link
Member

styfle commented Aug 20, 2018

I don't believe we need a new feature for this since it can be disabled as discussed in #420 and #1302

const marked = require('marked');
const renderer = new marked.Renderer();

renderer.image = function (text) {
  return text;
};

var html = marked(markdownString, { renderer: renderer });

@styfle styfle closed this as completed Aug 20, 2018
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

5 participants