Regression? Comments are presereved in 0.26.4 but removed in 0.34.40
See original GitHub issueWhile upgrading from 0.26.4 to 0.34.40 I encountered a change in how comments are rendered
diff --git a/readme.md b/readme.md
index 439cb14..67d01aa 100644
--- a/readme.md (rendered with flexmark 0.26.4)
+++ b/readme.md (rendered with flexmark 0.34.40)
@@ -24,7 +24,7 @@ part of your build. Distinguishing features of mdoc include:
Table of contents:
-<!-- TOC depthFrom:2 -->
+TOC depthFrom:2
- [Quickstart](#quickstart)
- [Library](#library)
@@ -46,7 +46,7 @@ Table of contents:
- [Team](#team)
- [--help](#--help)
-<!-- /TOC -->
+/TOC
I expected the comments to be preserved like the behavior in v0.26.4.
The input markdown document contains html comments like this:
<!-- TOC depthFrom:2 -->
- [Quickstart](#quickstart)
- [Library](#library)
- [Command-line](#command-line)
<!-- /TOC -->
Is this change intended? I couldn’t find the release notes to see what has changed.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@olafurpg, The bug is in the formatter. I will fix it.
@olafurpg, thank you for catching it. I missed having a comment in the formatting test.