From 192b43770bd7cd5f6487bcdd9035a2bffae608ae Mon Sep 17 00:00:00 2001 From: ryanfleury Date: Tue, 9 Feb 2021 18:56:04 -0700 Subject: [PATCH] do not leave spare carriage-return characters in node comments --- source/md_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/md_impl.c b/source/md_impl.c index 25c5cc5..e5ab806 100644 --- a/source/md_impl.c +++ b/source/md_impl.c @@ -1131,7 +1131,7 @@ MD_Parse_LexNext(MD_ParseCtx *ctx) at += 2; token.kind = MD_TokenKind_Comment; - MD_TokenizerScan(*at != '\n'); + MD_TokenizerScan(*at != '\n' && *at != '\r'); } else if (at[1] == '*') {