Cmark::Option
Inherits Enum < Comparable < Value < Object
A flag enum for rendering and parsing options, with None being the default.
Options affecting rendering:
SourceposHardbreaksUnsafeNobreaks
Options affecting parsing:
ValidateUTF8SmartGithubPreLangLiberalHTMLTagFootnotesStrikethroughDoubleTildeTablePreferStyleAttributesFullInfoString
You can easily combine options like this:
options = Option.flags(Unsafe, Nobreaks, ValidateUTF8, Smart)
Constants
Include a 'data-sourcepos' attribute on all block elements.
Render 'softbreak' elements as hard line breaks.
Render raw HTML and unsafe links.
It applies to 'javascript', 'vbscript', 'file', and 'data', except for 'image/png', 'image/gif', 'image/jpeg', or 'image/webp' mime types.
By default, raw HTML is replaced by a placeholder HTML comment. Unsafe links are replaced by empty strings.
Render 'softbreak' elements as spaces.
Validate UTF-8 in the input before parsing, replacing illegal sequences with the replacement character U+FFFD.
Convert straight quotes to curly, --- to em dashes, -- to en dashes.
Use GitHub-style '
' tags for code blocks instead of ''.
Be liberal in interpreting inline HTML tags.
Parse footnotes.
Only parse strikethroughs if surrounded by exactly 2 tildes.
Use style attributes to align table cells instead of align attributes.
Include the remainder of the info string in code blocks in a separate attribute.
Instance methods
Returns true if this enum value contains TablePreferStyleAttributes