-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Scaladoc wrongly interprets markdown inside code blocks #12868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@pikinier20 object Mirror:
/** The Mirror for a product type */
trait Product extends Mirror:
/** Create a new instance of type `T` with elements * taken from product `p`. */
def fromProduct(p: scala.Product): MirroredMonoType
trait Sum extends Mirror:
/** The ordinal number of the case class of `x`. * For enums, `ordinal(x) == x.ordinal` */
def ordinal(x: MirroredMonoType): Int
end Mirror The last two comments should be multiple line comments. You can see those |
It seems like it's another unrelated bug inside our hljs rules. It will be hard to decide whether * is start of emphasis or newline (eg. if there would be two *'s). Hljs may be not sophisticated enough to be able to fix this, but I'm gonna think about this. |
Is it really because of this rule? I don't get the multiline problem if I use my test + this commit. |
Uh oh!
There was an error while loading. Please reload this page.
The section "Types supporting derives clauses" of the document Type Class Derivation includes a code example
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 codetype 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.
The text was updated successfully, but these errors were encountered: