Skip to content

Commit

Permalink
CodeBlock parse inline HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
HKdAlex authored Aug 9, 2020
1 parent e339387 commit debd099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Ink/Internal/CodeBlock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ internal struct CodeBlock: Fragment {
func html(usingURLs urls: NamedURLCollection,
modifiers: ModifierCollection) -> String {
let languageClass = language.isEmpty ? "" : " class=\"language-\(language)\""
return "<pre><code\(languageClass)>\(code)</code></pre>"
return "<pre><code\(languageClass)>\(code.html(usingURLs: urls, modifiers: modifiers))</code></pre>"
}

func plainText() -> String {
Expand Down

0 comments on commit debd099

Please sign in to comment.