Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compatibility: initial tab replaced by four spaces #247

Open
step- opened this issue Feb 25, 2024 · 2 comments
Open

compatibility: initial tab replaced by four spaces #247

step- opened this issue Feb 25, 2024 · 2 comments

Comments

@step-
Copy link
Contributor

step- commented Feb 25, 2024

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>&lt;!--
	y
--&gt;
</code></pre>
<pre><code>z
</code></pre>

actual output: (md2html output)

<!--
    x
-->
<pre><code>&lt;!--
    y
--&gt;
</code></pre>
<pre><code>z
</code></pre>

Versions tested:

  • md2html release-0.5.1-46-g3848bfb
  • cmark 0.31.0-2-g3337a30
@mity
Copy link
Owner

mity commented Feb 25, 2024

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.)

@step-
Copy link
Contributor Author

step- commented Feb 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants