Support strikethrough elements

This commit is contained in:
Christian Muehlhaeuser
2019-12-13 03:00:45 +01:00
parent 6f20136abc
commit 0a3ba0ae35
3 changed files with 16 additions and 1 deletions
+3
View File
@@ -25,6 +25,7 @@ const (
// Text elements
Text
Strikethrough
Emph
Strong
HorizontalRule
@@ -275,6 +276,8 @@ func keyToType(key string) (StyleType, error) {
return H6, nil
case "hr":
return HorizontalRule, nil
case "strikethrough":
return Strikethrough, nil
case "emph":
return Emph, nil
case "strong":