md4c
md4c copied to clipboard
compatibility: initial tab replaced by four spaces
Opportunity to improve output compatibility: md2html replaces an initial TAB with four spaces while cmark doesn't.
test subject:
<!--
x
-->
```
<!--
y
-->
```
z
expected output (cmark output)
<!--
x
-->
<pre><code><!--
y
-->
</code></pre>
<pre><code>z
</code></pre>
actual output: (md2html output)
<!--
x
-->
<pre><code><!--
y
-->
</code></pre>
<pre><code>z
</code></pre>
Versions tested:
- md2html release-0.5.1-46-g3848bfb
- cmark 0.31.0-2-g3337a30
Sorry, this report is so badly formatted, I'm unable to parse what you really mean. Can you edit it to make it clear? (Ideally one code block for input, one code block for actual output, one code block for expected output.)
Sure, I just edited the report. I hope it's more clear now. I used github cli to upload the original comment, I'm not sure what went wrong. Anyway, the difference between expected and actual output is in the white space before x and y: one tab for expected (cmark), and four spaces for actual (md2html).
edit: fixed report