Skip to content

Commit

Permalink
Escape illegal characters in scaladoc code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperFKorban committed Jul 20, 2021
1 parent 54b89b1 commit ca7ccab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class DocRender(signatureRenderer: SignatureRenderer)(using DocContext):
case 5 => h5(content)
case 6 => h6(content)
case Paragraph(text) => p(renderElement(text))
case Code(data: String) => pre(code(raw(data))) // TODO add classes
case Code(data: String) => pre(code(raw(data.escapeReservedTokens))) // TODO add classes
case HorizontalRule => hr

case UnorderedList(items) => ul(listItems(items))
Expand Down

0 comments on commit ca7ccab

Please sign in to comment.