Skip to content

Commit 2f2b2bc

Browse files
committed
add s and u options to strikethrough or underline SVG text
1 parent 7d02d9c commit 2f2b2bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/svg_text_utils.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ var TAG_STYLES = {
330330
// baseline below
331331
sup: 'font-size:70%',
332332
sub: 'font-size:70%',
333+
s: 'text-decoration: line-through',
334+
u: 'text-decoration: underline',
333335
b: 'font-weight:bold',
334336
i: 'font-style:italic',
335337
a: 'cursor:pointer',

0 commit comments

Comments
 (0)