【发布时间】:2016-09-24 16:32:10
【问题描述】:
我期望以下文本(注意 80 个字符标记处的换行符):
This worked for a few months. Unfortunately, occasionally a test would time
out and fail after 18 seconds - maybe 1 in 100 test runs would fail with a
timeout. Normally when the tests fail you get back some kind of error message
- a Postgres constraint failure will print a useful message, or a Javascript
exception will bubble up, or Javascript will complain about an unhandled
rejection.
通过 Markdown 编辑器运行时,生成以下 HTML:
<p>
This worked for a few months. Unfortunately, occasionally a test would time
out and fail after 18 seconds - maybe 1 in 100 test runs would fail with a
timeout. Normally when the tests fail you get back some kind of error message
- a Postgres constraint failure will print a useful message, or a Javascript
exception will bubble up, or Javascript will complain about an unhandled
rejection.
</p>
当我通过cmark 运行它时,我得到以下信息:
<p>This worked for a few months. Unfortunately, occasionally a test would time
out and fail after 18 seconds - maybe 1 in 100 test runs would fail with a
timeout. Normally when the tests fail you get back some kind of error message</p>
<ul>
<li>a Postgres constraint failure will print a useful message, or a Javascript
exception will bubble up, or Javascript will complain about an unhandled
rejection.</li>
</ul>
<p>With this error we didn't get any of those. We also observed it could happen
anywhere - it didn't seem to correlate with any individual test or test file.</p>
这似乎不正确 - 我绝对不希望列表从段落中间开始。这是规范中的问题还是我可以采取不同的措施来不触发这种行为?
【问题讨论】:
-
有趣。这是与 Markdown 的分歧。见Babelmark
标签: markdown commonmark