Skip to content

[api-documenter] Officially support MDX in addition to Markdown #3625

Open
@matteematt

Description

@matteematt

Using api-documenter markdown -i dist -o docs/api is occasionally producing markdown files with random html comment sections in them.

When running the previous command it is seeming to produce markdown files with random html comments in them

For example, my colleuge recently created a PR where she was changing the variable name in a part of the monorepo, and now in an unrelated part the api-documenter is creating this change:

Screenshot 2022-09-13 at 13 38 58

The changes she's made does not effect the tsdoc which is being used to generate the markdown files.

Details

I have also run into this issue multiple times myself. This is causing issues because we pull these markdown files into docusaurus and these are causing syntax errors there

There error appears to always be related to some symbols such as [] or <> - in the above screenshot it seems to be related to the [] array syntax of the permissions, and I have previously seen it related to the <> generic syntax of a class.

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/api-documenter version? ^7.15.3
Operating system? Reproduced in our repo on Mac and Windows
Documentation target? Markdown
Would you consider contributing a PR? Yes
TypeScript compiler version? Version 4.7.4
Node.js version (node -v)? v18.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: mediumNeeds a somewhat experienced developerenhancementThe issue is asking for a new feature or design changeneeds designThe next step is for someone to propose the details of an approach for solving the problem

    Type

    No type

    Projects

    Status

    AE/AD

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions