Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[api-extractor] Markdown lists are not preserved in generated JSON. #1441

Open
1 of 2 tasks
DylanVann opened this issue Aug 2, 2019 · 2 comments
Open
1 of 2 tasks
Labels
blocked We can't proceed because we're waiting for something enhancement The issue is asking for a new feature or design change

Comments

@DylanVann
Copy link

Is this a feature or a bug?

  • Feature
  • Bug

I have a markdown list in a comment block, e.g.

/**
 * This api does things:
 *
 * - One
 * - Two
 * - Three
 *
 * @public
 */

I can see in the generated file temp/projectname.api.json that the newlines are stripped. Which looks like this:

 *
 * - One - Two - Three
 *

This can be reproduced in any simple project using api-extractor.

Even if I manually edit temp/projectname.api.json to include the list with line breaks api-documenter doesn't seem to parse it properly, and still outputs on one line.

What is the expected behavior?

Preserving newlines, so that markdown can be generated later.

If this is a bug, please provide the tool version, Node.js version, and OS.

  • Tool: `api-extractor
  • Tool Version: 7.3.4
  • Node Version: v10.16.0
    • Is this a LTS version? yes
    • Have you tested on a LTS version? yes
  • OS: macOS
@octogonz octogonz added the enhancement The issue is asking for a new feature or design change label Aug 2, 2019
@octogonz
Copy link
Collaborator

octogonz commented Aug 2, 2019

The TSDoc parser does not support Markdown lists yet. We need to fix that first, then we can update API Extractor to support it.

@octogonz octogonz added the blocked We can't proceed because we're waiting for something label Aug 2, 2019
@DylanVann
Copy link
Author

Related TSDoc parser issue: microsoft/tsdoc#178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked We can't proceed because we're waiting for something enhancement The issue is asking for a new feature or design change
Projects
Status: AE/AD
Development

No branches or pull requests

2 participants