From 8b39b7fd9c101dcc48f9877d4307904643a337c7 Mon Sep 17 00:00:00 2001 From: Tony Dinh Date: Thu, 29 Jul 2021 22:39:46 +0800 Subject: [PATCH] Use correct method --- Sources/Parsley/Parsley.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Parsley/Parsley.swift b/Sources/Parsley/Parsley.swift index 7910084..7015000 100644 --- a/Sources/Parsley/Parsley.swift +++ b/Sources/Parsley/Parsley.swift @@ -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)