From debd099827eef14f1b1e525938ebbbb317cca446 Mon Sep 17 00:00:00 2001 From: Alex HKD Date: Sun, 9 Aug 2020 11:58:25 +0300 Subject: [PATCH] CodeBlock parse inline HTML --- Sources/Ink/Internal/CodeBlock.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Ink/Internal/CodeBlock.swift b/Sources/Ink/Internal/CodeBlock.swift index e2fdb2a..3362d83 100644 --- a/Sources/Ink/Internal/CodeBlock.swift +++ b/Sources/Ink/Internal/CodeBlock.swift @@ -50,7 +50,7 @@ internal struct CodeBlock: Fragment { func html(usingURLs urls: NamedURLCollection, modifiers: ModifierCollection) -> String { let languageClass = language.isEmpty ? "" : " class=\"language-\(language)\"" - return "
\(code)
" + return "
\(code.html(usingURLs: urls, modifiers: modifiers))
" } func plainText() -> String {