Skip to content

Commit 6184e74

Browse files
committed
Fix groupping entries using markdown syntax
1 parent fd22547 commit 6184e74

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package example
2+
3+
/** Groups
4+
* @groupname foo Foo-group
5+
* @groupdesc bar Description of group
6+
* bar
7+
*/
8+
class Groups {
9+
/** Method in group foo
10+
* @group foo
11+
*/
12+
def groupFoo: String = ???
13+
14+
/** Method in group bar
15+
* @group bar
16+
*/
17+
def groupBar: String = ???
18+
19+
/** Method in group bazz
20+
* @group bazz
21+
*/
22+
def groupBazz: String = ???
23+
}

scaladoc/src/dotty/tools/scaladoc/tasty/comments/Comments.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class MarkdownCommentParser(repr: Repr)(using dctx: DocContext)
178178
def stringToMarkup(str: String) =
179179
MarkdownParser.parseToMarkdown(str, markdown.DocFlexmarkParser(resolveLink))
180180

181-
def markupToString(t: mdu.Node): String = t.toString()
181+
def markupToString(t: mdu.Node): String = t.getChars().toString()
182182

183183
def markupToDokka(md: mdu.Node): DocPart = md
184184

0 commit comments

Comments
 (0)