allow formatting within strikethrough

This commit is contained in:
Iris Lightshard 2022-06-18 23:55:45 -06:00
parent facd2dd570
commit 8cdc1fc878
Signed by: Iris Lightshard
GPG key ID: 3B7FBC22144E6398

6
main.c
View file

@ -339,9 +339,9 @@ int fpitalic(FILE* f, char* s) {
return 1; return 1;
} }
int fpstrike(FILE* f, char* s) { int fpstrike(FILE* f, Lexicon* l, char* s) {
fputs("<s>", f); fputs("<s>", f);
fputs(s, f); fpmetatemplate(f, l, s);
fputs("</s>", f); fputs("</s>", f);
return 1; return 1;
} }
@ -393,7 +393,7 @@ int fptemplate(FILE* f, Lexicon* l, char* s) {
case '@': case '@':
return fpbold(f, s + 1); return fpbold(f, s + 1);
case '\\': case '\\':
return fpstrike(f, s + 1); return fpstrike(f, l, s + 1);
case '!': case '!':
return fph3(f, s + 1); return fph3(f, s + 1);
case '.': case '.':