go-commonmark
go-commonmark copied to clipboard
Options
Can you please add some more detailed explanation about the options?
What does each of them mean and when to use them?
Thanks.
I'm not sure what you mean. Which options?
These options in the constants section. What does every option mean and how to use them?
CMark writer options for render functions
const CMARK_OPT_HARDBREAKS = 2
const CMARK_OPT_NORMALIZE = 4
const CMARK_OPT_SAFE = 32
const CMARK_OPT_SMART = 8
const CMARK_OPT_SOURCEPOS = 1
const CMARK_OPT_VALIDATE_UTF8 = 16
Ah, those come directly from cmark.h. Some of those are commented there, I suppose the comments could be copy/pasted over.