dprint / dprint-plugin-markdown

Markdown code formatting plugin for dprint.
MIT License
25 stars 9 forks source link

Reference links after a table are swallowed #38

Closed satyarohith closed 3 years ago

satyarohith commented 3 years ago

Input

# Test

| Company                    |
| -------------------------- |
| [GitHub][github]           |
| [Amazon Web Services][aws] |

[github]: https://github.com
[aws]: https://aws.amazon.com

A paragraph.

Expected Output

# Test

| Company                    |
| -------------------------- |
| [GitHub][github]           |
| [Amazon Web Services][aws] |

[github]: https://github.com
[aws]: https://aws.amazon.com

A paragraph.

Actual Output

# Test

| Company                    |
| -------------------------- |
| [GitHub][github]           |
| [Amazon Web Services][aws] |

A paragraph.
dsherret commented 3 years ago

Thanks! The internal state of the code was accidentally marking itself as always being in a table after seeing a table and so it wouldn't parse out the link references.

Will be fixed in 0.6.1 (releasing now).