-
Notifications
You must be signed in to change notification settings - Fork 12
Document_RenderingOptions
Options for rendering a CommonMark document.
public struct RenderingOptions: OptionSetOptionSet
public init(rawValue: Int32 = CMARK_OPT_DEFAULT)var rawValue: Int32Render raw HTML and "unsafe" links.
let unsafeA link is considered to be "unsafe"
if its scheme is javascript:, vbscript:, or file:,
or if its scheme is data:
and the MIME type of the encoded data isn't one of the following:
By default, raw HTML is replaced by a placeholder HTML comment. Unsafe links are replaced by empty strings.
Important: This option has an effect only when rendering HTML.
Render softbreak elements as spaces.
let noBreaksImportant: This option has no effect when rendering XML.
Render softbreak elements as hard line breaks.
let hardBreaksImportant: This option has no effect when rendering XML.
Include a data-sourcepos attribute on all block elements
to map the rendered output to the source input.
let includeSourcePositionImportant: This option has an effect only when rendering HTML or XML.
Generated at 2021-03-03T19:19:22+0000 using swift-doc 1.0.0-beta.5.
Types
- BlockQuote
- Code
- CodeBlock
- CommonMarkBuilder
- Document
- Document.Error
- Document.ParsingOptions
- Document.Position
- Emphasis
- ForEach
- Fragment
- HTMLBlock
- HardLineBreak
- Heading
- Image
- Link
- List
- List.Delimiter
- List.Item
- List.Kind
- Node
- Node.RenderingFormat
- Node.RenderingOptions
- Paragraph
- RawHTML
- Section
- SoftLineBreak
- StringBuilder
- Strong
- Text
- ThematicBreak
- VisitorContinueKind