Skip to content

Commit

Permalink
Use correct method
Browse files Browse the repository at this point in the history
  • Loading branch information
trungdq88 committed Jul 29, 2021
1 parent c4e826f commit 8b39b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Parsley/Parsley.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public struct Parsley {
public static func html(_ content: String, options: MarkdownOptions = [.safe]) throws -> String {
var buffer: String?
try content.withCString {
guard let buf = cmark_markdown_to_html($0, Int(strlen($0)), options.rawValue) else {
guard let buf = cmark_gfm_markdown_to_html($0, Int(strlen($0)), options.rawValue) else {
throw MarkdownError.conversionFailed
}
buffer = String(cString: buf)
Expand Down

0 comments on commit 8b39b7f

Please sign in to comment.