Dart-Code / Dart-Code

Dart and Flutter support for VS Code
https://dartcode.org/
MIT License
1.5k stars 308 forks source link

Support for Dartdoc > Markdown Tables? #2559

Closed ened closed 4 years ago

ened commented 4 years ago

Is it possible to show markdown tables in the doc previews?

It seems the feature is generally available in dartdoc https://github.com/dart-lang/dartdoc/issues/1453, yet when I tried to add code like this:

  /// Return values:
  /// 
  /// | Component | Symbol | Short Form   | Long Form         | Numeric   | 2-digit   |
  /// |-----------|:------:|--------------|-------------------|-----------|-----------|
  /// | era       |   G    | G (AD)       | GGGG (Anno Domini)| -         | -         |
  /// | year      |   y    | -            | -                 | y (2015)  | yy (15)   |
  /// 
  /// 

The area for the return values table stays empty, once hovering the relevant function.

DanTup commented 4 years ago

Markdown rendering is done by VS Code. It seems like this was supported, but was recently broken:

https://github.com/microsoft/vscode/issues/99983

It's been fixed in the last few days and I can see the fix works in the Insiders version:

Screenshot 2020-06-16 at 14 49 51

So this should be fixed with the next release of VS Code.

Thanks!

ened commented 4 years ago

@DanTup Thank you very much.