Skip to content

Commit

Permalink
Scaladoc: Unescaped special characters in Quotes documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperFKorban authored and olsdavis committed Apr 4, 2022
1 parent 84eb162 commit d020b9f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions scaladoc-testcases/src/tests/markdowncode.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package tests.markdowncode

/** Some text `{ <statements: List[Statement]>; <expr: Term> }` */
val aVal: Float
= 1.2f
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class DocRender(signatureRenderer: SignatureRenderer)(using DocContext):
case Subscript(text) => span(cls:="subscript")(renderElement(text)) // TODO implement style
case Link(target, body) =>
renderLink(target, default => body.fold[TagArg](default)(renderElement))
case Text(text) => raw(text)
case Text(text) => raw(text.escapeReservedTokens)
case Summary(text) => renderElement(text)
case HtmlTag(content) => raw(content)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,5 @@ class FBoundedTypeParameters extends SignatureTest("fboundedTypeParameters", Sig
class Exports extends SignatureTest("exports2", SignatureTest.all, sourceFiles = List("exports1", "exports2"))

class ContextFunctions extends SignatureTest("contextfunctions", SignatureTest.all)

class MarkdownCode extends SignatureTest("markdowncode", SignatureTest.all)

0 comments on commit d020b9f

Please sign in to comment.