diff --git a/src/Tokenizer.ts b/src/Tokenizer.ts index 3ae62ad8..10b98710 100644 --- a/src/Tokenizer.ts +++ b/src/Tokenizer.ts @@ -458,6 +458,9 @@ export class _Tokenizer { if (headingBeginRegex.test(line)) { break; } + if (htmlBeginRegex.test(line)) { + break; + } if (hrRegex.test(line)) { break; } diff --git a/test/specs/new/list_lazy_after_html.html b/test/specs/new/list_lazy_after_html.html new file mode 100644 index 00000000..a7392eb0 --- /dev/null +++ b/test/specs/new/list_lazy_after_html.html @@ -0,0 +1,25 @@ + +

not in the list

+ +

not in the list

+
    +
  1. + +
  2. +
+

not in the list

+ +

not in the list

diff --git a/test/specs/new/list_lazy_after_html.md b/test/specs/new/list_lazy_after_html.md new file mode 100644 index 00000000..80f0ce02 --- /dev/null +++ b/test/specs/new/list_lazy_after_html.md @@ -0,0 +1,14 @@ +-
+not in the list + +- item +
+not in the list + +1. +not in the list + +- item + +
+not in the list