gettalong / kramdown

kramdown is a fast, pure Ruby Markdown superset converter, using a strict syntax definition and supporting several common extensions.
http://kramdown.gettalong.org
Other
1.72k stars 274 forks source link

Can I remove the image parsing method? #800

Closed clickworkorange closed 9 months ago

clickworkorange commented 9 months ago

I've rolled my own Kramdown::Parser as a very restricted subset of the GFM parser, for use in a publicly accessible comment section, and it works very well. But the list of removable parser methods does not seem to include anything related to parsing of image markdown, which I also want to remove. Is this possible?

clickworkorange commented 9 months ago

Actually, I just realised my CSP will block external images anyway, so this isn't super important.

gettalong commented 9 months ago

Images are parsed with the same parser method as links, see https://github.com/gettalong/kramdown/blob/master/lib/kramdown/parser/kramdown/link.rb#L67