yuin / goldmark

:trophy: A markdown parser written in Go. Easy to extend, standard(CommonMark) compliant, well structured.
MIT License
3.68k stars 255 forks source link

Question: is it possible to use selected features? #106

Closed alexanderadam closed 4 years ago

alexanderadam commented 4 years ago

Hi @yuin,

this is rather just a question than a issue report: Is it possible with goldmark to use less or just a single markdown feature for certain cases?

I'm asking because it could be relevant for a feature where just backticks (`foo` :arrow_right: foo) should be converted.

yuin commented 4 years ago

goldmark.Markdown is just a facade to provide easy way for most users.

As you can see in here, it performs with default parsers and default renders. Instead of this, You can create parser.Parser that consist of certain renderer you want.

alexanderadam commented 4 years ago

Awesome, thank you very much! :pray: