add strikethrough (somewhat broken)
All checks were successful
Build and Deploy Client / build-and-deploy (push) Successful in 9s

This commit is contained in:
2026-09-12 23:47:27 -05:00
parent fbe9765ef0
commit 0fc074f968
2 changed files with 11 additions and 1 deletions

View File

@@ -19,3 +19,7 @@ p {
.format-underline {
text-decoration: underline solid #000000 3px;
}
.format-strikethrough {
text-decoration: line-through;
}

View File

@@ -36,7 +36,13 @@ const styles: Record<string, formatDescriptor> = {
},
U: {
className: "format-underline"
}
},
S: {
className: "format-strikethrough"
} // TODO: some css style elements cannot simply be overlapped. strikethrough and underline both use the
// "text decoration" tag so simply applying both will overwrite one of the styles. some extra logic will have to
// be put in place to add a combined "format-strikethrough-formatunderline" style in which the text decoration
// contains both.
}; // i.e. %B{...} will apply "format-bold"
// blocks registry: this maps format specifiers to html block types