Skip to content

Scaladoc: convert remaining wikidoc syntax in stdlib comments to markdown - #26924

Open
mbovel wants to merge 2 commits into
scala:mainfrom
mbovel:mb/scaladoc-wiki-to-markdown
Open

mbovel wants to merge 2 commits into
scala:mainfrom
mbovel:mb/scaladoc-wiki-to-markdown

Conversation

@mbovel

@mbovel mbovel commented Aug 26, 2026

Copy link
Copy Markdown
Member

Fixes #26923.

Have you relied on LLM-based tools in this contribution?

Yes

How was the solution tested?

I looked at the generated doc pages for changed files.

mbovel and others added 2 commits August 26, 2026 13:27
…down

Scaladoc renders the standard library with `-comment-syntax:markdown`
(the default since 2df8144), but a number of doc comments still used
wikidoc markup, which is rendered literally. A sweep over library/src
and rootdoc.txt found and fixed the following:

- `'''bold'''` and leftover `**bold**` inside code spans (the earlier
  conversion turned `'''` into `**` even inside backticks, where markdown
  does not interpret it): `'''true'''` / `**true**` -> `true`, etc.
- `''italic''` -> `*italic*` (Iterator).
- `x^y^` superscripts -> `x<sup>y</sup>`, as already done in 113e357.
- `x,,1,,` subscripts -> `x<sub>1</sub>`. Where the expression was in a
  code span, `<code>...</code>` is used so it keeps its code styling.
- `[[target `label`]]`: in markdown mode the label is rendered as plain
  text, so the backticks showed up literally. Dropped them, and collapsed
  `[[X X]]` to `[[X]]` since the default label is the query text.
- rootdoc.txt: `== Heading ==` -> `## Heading`.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The root package documentation is written in markdown (scaladoc parses it
with the same comment syntax as the sources, markdown by default), so give
it the matching extension.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mbovel
mbovel requested a review from SolalPirelli August 26, 2026 13:47
@SolalPirelli

Copy link
Copy Markdown
Contributor

Looks ok, sync with @bvenners to avoid conflicts / ensure this doesn't regress?

@mbovel

mbovel commented Aug 31, 2026

Copy link
Copy Markdown
Member Author

What do you think @bvenners?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some stdlib doc comments use WikiDoc instead of Markdown

2 participants