question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Status of support for various Markdown constructs

See original GitHub issue

I tried to use markdown list syntax but that’s being parsed as a normal string. What I originally wanted to do is use a list and then use @link inside that list, eg:

/**
 * suummary section here, followed by a list
 *
 *  - {@link Card | `<Card>`} use this
 *  - {@link Masonry | `<Masonry>`} or that
 */

Is markdown support limited to links or does markdown support mean all standard markdown elements such as headings, paragraphs, lists, code blocks etc.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
octogonzcommented, Jul 11, 2019

Good question! Here’s a quick summary of the status:

Markdown feature Support HTML workaround Notes
code spans implemented <code></code>
fenced code implemented <code></code> We also support syntax highlighters
HTML tags implemented Today TSDoc’s AST represents individual opening/closing elements. Very soon we’re going to have it parse the full tree and report mismatched tags.
Escapes partially supported As part of the spec process, we need to specify rigorous escape mechanisms at each layer of the onion skin for JSDoc, Markdown, HTML, and their constituent parts.
bold/italics planned <b></b> This is a trickier aspect of the spec, due to TSDoc’s goal of output being predictable without access to an interactive renderer. Markdown * characters have tons of counterintuitive edge cases.
lists planned <ul></ul> This is an easy work item, so we could implement it soon if someone wants it
thematic breaks unsupported <hr/>
images unsupported
(Markdown) links unsupported Use {@link} instead of Markdown links. For special link types, use an HTML element.
block quotes unsupported <blockquote></blockquote>
headings unsupported <h2></h2l> When I tried this, I found that it tends to interfere with the documentation system’s own page layout. Feel free to open an issue if you disagree with that decision.
pipe-and-dash tables unsupported <table></table> We’re not planning to support GitHub tables because CommonMark doesn’t support them either. We will recommend to use HTML for making tables (and any nesting construct).
nesting (e.g. fenced code inside a blockquote inside a list item) unsupported This position is outlined in RFC https://github.com/microsoft/tsdoc/issues/29

Community feedback is welcome.

1reaction
DylanVanncommented, Aug 6, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Extended Syntax - Markdown Guide
Many Markdown processors support syntax highlighting for fenced code blocks. This feature allows you to add color highlighting for whatever language your code ......
Read more >
Modify the current markdown support · Community
This input field is trying to do 1000 WYSIWYG backflips when many Teams users would actually be _happier_ with a raw, unformatted, uncomplicated...
Read more >
Supported Markdown features - Redocly
Supported Markdown features · Front matter · Unordered lists · Numbered lists · Free-form code samples · Customizable images · Admonitions.
Read more >
Embedding Status Images - Travis CI Docs
You can embed status images (also known as badges or icons) that show the status of ... common templates for the status image...
Read more >
GitHub Pages builds now use the Checks API
... you can view the status of your builds with the Checks interface. ... 125,000 GitHub Pages builds—and sometimes, you need a little...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found