Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Document_ParsingOptions

mattt edited this page Dec 21, 2020 · 4 revisions

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 (…)

Clone this wiki locally