russross / blackfriday

Blackfriday: a markdown processor for Go
Other
5.45k stars 602 forks source link

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

Closed alexaandru closed 9 months ago

alexaandru commented 3 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)