go-commonmark icon indicating copy to clipboard operation
go-commonmark copied to clipboard

Options

Open amkgo opened this issue 8 years ago • 3 comments

Can you please add some more detailed explanation about the options?

What does each of them mean and when to use them?

Thanks.

amkgo avatar Dec 01 '17 16:12 amkgo

I'm not sure what you mean. Which options?

rhinoman avatar Dec 04 '17 14:12 rhinoman

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

amkgo avatar Dec 04 '17 22:12 amkgo

Ah, those come directly from cmark.h. Some of those are commented there, I suppose the comments could be copy/pasted over.

rhinoman avatar Dec 06 '17 19:12 rhinoman