Skip to content

Commit

Permalink
Merge pull request #14377 from KacperFKorban/fix-i13746
Browse files Browse the repository at this point in the history
Scaladoc: Unescaped special characters in Quotes documentation
  • Loading branch information
pikinier20 authored Feb 7, 2022
2 parents 8e2fab7 + 1f280bb commit 064c213
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 064c213

Please sign in to comment.