Steps to reproduce the problem (provide example Markdown if applicable):
Try to load and render an example from: https://squidfunk.github.io/mkdocs-material/reference/content-tabs/
The CoreMarkdownNodeRenderer.visit(Text text) method will escape it and prevent the content tabs from rendering correctly because it suspects them to be Setext Headers, the comment says: "Would be ambiguous with a Setext heading, escape"
|
// Would be ambiguous with a Setext heading, escape |
Is it possible to allow the content tab headers to render correctly without being escaped?
=== "C"
``` c
#include <stdio.h>
int main(void) {
printf("Hello world!\n");
return 0;
}
```
=== "C++"
``` c++
#include <iostream>
int main(void) {
std::cout << "Hello world!" << std::endl;
return 0;
}
```
Expected behavior:
Actual behavior:
(Also see what the reference implementation does: https://spec.commonmark.org/dingus/)
Steps to reproduce the problem (provide example Markdown if applicable):
Try to load and render an example from: https://squidfunk.github.io/mkdocs-material/reference/content-tabs/
The CoreMarkdownNodeRenderer.visit(Text text) method will escape it and prevent the content tabs from rendering correctly because it suspects them to be Setext Headers, the comment says: "Would be ambiguous with a Setext heading, escape"
commonmark-java/commonmark/src/main/java/org/commonmark/renderer/markdown/CoreMarkdownNodeRenderer.java
Line 369 in 7d12b6f
Is it possible to allow the content tab headers to render correctly without being escaped?
Expected behavior:
Actual behavior:
(Also see what the reference implementation does: https://spec.commonmark.org/dingus/)