Document_ParsingOptions - SwiftDocOrg/CommonMark GitHub Wiki

Document.ParsingOptions

Options for parsing CommonMark text.

public struct ParsingOptions: OptionSet

Inheritance

OptionSet

Initializers

init(rawValue:)

public init(rawValue: Int32 = CMARK_OPT_DEFAULT)

Properties

rawValue

var rawValue: Int32

smart

Convert ASCII punctuation characters to "smart" typographic punctuation characters.

let smart
  • Straight quotes (" and ') become curly quotes (“ ” and ‘ ’)

  • Dashes (-- and ---) become en-dashes (–) and em-dashes (—)

  • Three consecutive full stops (...) become an ellipsis (…)