Skip to content

Commit f39e192

Browse files
authored
Merge pull request #8 from jimstudt/newflags
Add the 'unsafe' option
2 parents 43d5646 + d9e869d commit f39e192

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/SwiftMarkdown/SwiftMarkdown.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public struct MarkdownOptions: OptionSet {
1818
static public let normalize = MarkdownOptions(rawValue: 1 << 8)
1919
static public let validateUTF8 = MarkdownOptions(rawValue: 1 << 9)
2020
static public let smartQuotes = MarkdownOptions(rawValue: 1 << 10)
21+
static public let unsafe = MarkdownOptions(rawValue: 1 << 17)
2122
}
2223

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

0 commit comments

Comments
 (0)