lib/rsyntaxtree/svg_graph.rb in rsyntaxtree-0.8.3 vs lib/rsyntaxtree/svg_graph.rb in rsyntaxtree-0.8.4
- old
+ new
@@ -97,10 +97,13 @@
main = $1
main_decoration= "overline"
elsif /\A\-(.+)\-\z/ =~ main
main = $1
main_decoration= "underline"
+ elsif /\A\~(.+)\~\z/ =~ main
+ main = $1
+ main_decoration= "line-through"
else
main_decoration= ""
end
if /\A\*\*\*(.+)\*\*\*\z/ =~ main
@@ -135,9 +138,12 @@
sub = $1
sub_decoration= "overline"
elsif /\A\-(.+)\-\z/ =~ sub
sub = $1
sub_decoration= "underline"
+ elsif /\A\~(.+)\~\z/ =~ sub
+ sub = $1
+ sub_decoration= "line-through"
else
sub_decoration= ""
end
if /\A\*\*\*(.+)\*\*\*\z/ =~ sub