russross / blackfriday

Blackfriday: a markdown processor for Go
Other
5.41k stars 596 forks source link

Added ability to disable smart parens, fixes #411, #689

Closed alexaandru closed 6 months ago

alexaandru commented 2 years ago

You can now run the following code to disable smart parens:

mdOpt = blackfriday.WithRenderer(blackfriday.NewHTMLRenderer(blackfriday.HTMLRendererParameters{
  Flags: blackfriday.CommonHTMLFlags ^ blackfriday.SmartypantsParens,
}))

blackfriday.Run([]byte(...), mdOpt)