add strikethrough (somewhat broken)
All checks were successful
Build and Deploy Client / build-and-deploy (push) Successful in 9s
All checks were successful
Build and Deploy Client / build-and-deploy (push) Successful in 9s
This commit is contained in:
@@ -19,3 +19,7 @@ p {
|
|||||||
.format-underline {
|
.format-underline {
|
||||||
text-decoration: underline solid #000000 3px;
|
text-decoration: underline solid #000000 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.format-strikethrough {
|
||||||
|
text-decoration: line-through;
|
||||||
|
}
|
||||||
|
|||||||
@@ -36,7 +36,13 @@ const styles: Record<string, formatDescriptor> = {
|
|||||||
},
|
},
|
||||||
U: {
|
U: {
|
||||||
className: "format-underline"
|
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"
|
}; // i.e. %B{...} will apply "format-bold"
|
||||||
|
|
||||||
// blocks registry: this maps format specifiers to html block types
|
// blocks registry: this maps format specifiers to html block types
|
||||||
|
|||||||
Reference in New Issue
Block a user