Skip to content

Commit 8b39b7f

Browse files
committed
Use correct method
1 parent c4e826f commit 8b39b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Parsley/Parsley.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public struct Parsley {
1010
public static func html(_ content: String, options: MarkdownOptions = [.safe]) throws -> String {
1111
var buffer: String?
1212
try content.withCString {
13-
guard let buf = cmark_markdown_to_html($0, Int(strlen($0)), options.rawValue) else {
13+
guard let buf = cmark_gfm_markdown_to_html($0, Int(strlen($0)), options.rawValue) else {
1414
throw MarkdownError.conversionFailed
1515
}
1616
buffer = String(cString: buf)

0 commit comments

Comments
 (0)