Skip to content

description returns preceeding asterisks #28

@bennypowers

Description

@bennypowers

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions