Я ожидаю, что следующий текст (примечание перевода строки на отметке 80 символов):CommonMark вставляет список в середине пункта
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.
при запуске через редактор уценки, чтобы генерировать следующий 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] (http://johnmacfarlane.net/babelmark2/?normalize=1&text=This+worked+for+a+few+months.+Unappro%2C+occasionally+a+test+would+time%0Aout+and + обязательно + после + 18 + секунд + -. + возможно + 1 + в + 100 + тест + работает + будет + провал + с + в% 0Atimeout + Обычно + когда + в + тесты + провал + вы + получить + назад + некоторые + вид + в + + ошибки сообщения% 0a- + а + Postgres + ограничение + отказ + будет + печать + а + полезно + сообщение% 2C + или + а + JavaScript% 0Aexception + будет + пузырь + 2C% до + или + Javascript + будет + жаловаться + о + + необработанном% 0Arejection.) – Waylan