Skip to content

Scaladoc wrongly interprets markdown inside code blocks #12868

Closed
@ShapelessCat

Description

@ShapelessCat

The section "Types supporting derives clauses" of the document Type Class Derivation includes a code example

```scala
sealed trait Mirror:

  /** the type being mirrored */
  type MirroredType

  /** the type of the elements of the mirrored type */
  type MirroredElemTypes

  /** The mirrored *-type */
  type MirroredMonoType

  /** The name of the type */
  type MirroredLabel <: String

  /** The names of the elements of the type */
  type MirroredElemLabels <: Tuple
```

Currently its view in HTML is wrong: several lines are merged into one line.
I guess the reason is the *-type, the comment line that above the code type MirroredMonoType, which affects the HTML rendering.

Please check http://dotty.epfl.ch/docs/reference/contextual/derivation.html
I already checked its view in both Chrome and Firefox.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions