internal cmark_options ToOptions() { cmark_options options = cmark_options.Default; if (SourcePositions) { options |= cmark_options.SourcePositions; } if (HardBreaks) { options |= cmark_options.HardBreaks; } if (Normalize) { options |= cmark_options.Normalize; } if (Smart) { options |= cmark_options.Smart; } if (ValidateUTF8) { options |= cmark_options.ValidateUTF8; } return(options); }
internal static extern IntPtr cmark_parse_file(IntPtr file, cmark_options options);
internal static extern IntPtr cmark_parse_document(IntPtr buffer, int len, cmark_options options);
internal static unsafe extern sbyte* cmark_markdown_to_html(byte* ptr, int len, cmark_options options);