Skip to content

Commit

Permalink
Merge pull request #8 from jimstudt/newflags
Browse files Browse the repository at this point in the history
Add the 'unsafe' option
  • Loading branch information
0xTim authored Mar 26, 2020
2 parents 43d5646 + d9e869d commit f39e192
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/SwiftMarkdown/SwiftMarkdown.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public struct MarkdownOptions: OptionSet {
static public let normalize = MarkdownOptions(rawValue: 1 << 8)
static public let validateUTF8 = MarkdownOptions(rawValue: 1 << 9)
static public let smartQuotes = MarkdownOptions(rawValue: 1 << 10)
static public let unsafe = MarkdownOptions(rawValue: 1 << 17)
}

public func markdownToHTML(_ str: String, options: MarkdownOptions = [.safe]) throws -> String {
Expand Down

0 comments on commit f39e192

Please sign in to comment.