Welcome to little lamb

Code » md4c » commit fa969d3

Tweak strikethrough

author Olivier Brunel
2023-07-19 12:20:05 UTC
committer Olivier Brunel
2023-07-19 12:54:58 UTC
parent ae9fbb1adb1c37841646df5241dd3134e27b2b98

Tweak strikethrough

src/md4c.c +1 -6

diff --git a/src/md4c.c b/src/md4c.c
index 5be3809..43054d8 100644
--- a/src/md4c.c
+++ b/src/md4c.c
@@ -3352,12 +3352,7 @@ md_collect_marks(MD_CTX* ctx, const MD_LINE* lines, int n_lines, int table_mode)
                     tmp++;
 
                 if(tmp - off < 3) {
-                    unsigned flags = 0;
-
-                    if(tmp < line_end  &&  !ISUNICODEWHITESPACE(tmp))
-                        flags |= MD_MARK_POTENTIAL_OPENER;
-                    if(off > line->beg  &&  !ISUNICODEWHITESPACEBEFORE(off))
-                        flags |= MD_MARK_POTENTIAL_CLOSER;
+                    unsigned flags = md_get_potential_flags(ctx, off, tmp, line->beg, line_end);
                     if(flags != 0)
                         PUSH_MARK(ch, off, tmp, flags);
                 }