X-Git-Url: https://git.danieliu.xyz/?p=smdp.git;a=blobdiff_plain;f=src%2Fparser.c;fp=src%2Fparser.c;h=906cb45e9914ed5f4f2e703451e8811d37289686;hp=615cc6e26971c5191123282cb16864f45cf556a6;hb=6d881eb6228ea504323d8acabbe3774c64996571;hpb=7b021d653f0713295868e8d2152f1366bbadf128 diff --git a/src/parser.c b/src/parser.c index 615cc6e..906cb45 100644 --- a/src/parser.c +++ b/src/parser.c @@ -481,6 +481,7 @@ int markdown_analyse(cstring_t *text, int prev) { // strip trailing spaces for(eol = text->size; eol > offset && iswspace(text->value[eol - 1]); eol--); + text->size = eol; // IS_UNORDERED_LIST_# if(text->size >= offset + 2 &&