tree-sitter-jsdoc icon indicating copy to clipboard operation
tree-sitter-jsdoc copied to clipboard

description returns preceeding asterisks

Open bennypowers opened this issue 1 month ago • 0 comments

given this typescript

/**
 * description
 * the description contains:
 * - markdown list
 * - inline code
 * - multiple lines
 * - markdown headings
 *
 * ## Heading
 * markdown heading follows `list`.
 */
@customElement('jsdoc-description-markdown')
class JsdocDescriptionMarkdown extends LitElement { }

I expect tree-sitter jsdoc to return this description:

description
the description contains:
- markdown list
- inline code
- multiple lines
- markdown headings

## Heading
markdown heading follows `list`.

but the actual returned value is

description
 * the description contains:
 * - markdown list
 * - inline code
 * - multiple lines
 * - markdown headings
 *
 * ## Heading
 * markdown heading follows `list`.

NOTE that the first line's preceeding asterisk is omitted, but subsequent lines' preceeding asterisks are not

Image

bennypowers avatar Oct 16 '25 07:10 bennypowers