This repository was archived by the owner on Oct 17, 2021. It is now read-only.
  
  
  - 
                Notifications
    
You must be signed in to change notification settings  - Fork 12
 
Node_RenderingOptions
        mattt edited this page Dec 21, 2020 
        ·
        2 revisions
      
    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:
- 
image/png - 
image/gif - 
image/jpeg - 
image/webp 
By default, raw HTML is replaced by a placeholder HTML comment. Unsafe links are replaced by empty strings.
Render softbreak elements as spaces.
let noBreaksRender softbreak elements as hard line breaks.
let hardBreaksInclude a data-sourcepos attribute on all block elements
to map the rendered output to the source input.
let includeSourcePositionGenerated 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