ext/xhtml.c in redcarpet-1.5.0 vs ext/xhtml.c in redcarpet-1.5.1
- old
+ new
@@ -165,10 +165,10 @@
if (!text || !text->size)
return 0;
if (c == '~') {
- if (options->flags & XHTML_SKIP_STRIKETHROUGH)
+ if ((options->flags & XHTML_STRIKETHROUGH) == 0)
return 0;
BUFPUTSL(ob, "<span style=\"text-decoration:line-through;\">");
bufput(ob, text->data, text->size);
BUFPUTSL(ob, "</span>");