Add <var> and <dfn> to italicized tags

This commit is contained in:
Nate Weaver 2020-04-30 03:04:51 -05:00
parent 7297bf837d
commit 62737bd94f

View File

@ -106,7 +106,7 @@ extension NSAttributedString {
switch forTag { switch forTag {
case "b", "strong": case "b", "strong":
self = .bold self = .bold
case "i", "em", "cite": case "i", "em", "cite", "var", "dfn":
self = .italic self = .italic
case "sup": case "sup":
self = .superscript self = .superscript