bin/html2ansi in html-renderer-0.0.3 vs bin/html2ansi in html-renderer-0.0.4
- old
+ new
@@ -67,10 +67,13 @@
def smash(s)
s&.downcase&.scan(/\w+/)&.join
end
+ def subscript(s)
+ "[#{s}]"
+ end
public
def normal_text(text)
text
@@ -137,11 +140,11 @@
title = case level
when 1 then title.bold.yellow
when 2 then title.bold.cyan
when 3 then title.bold.blue
- else title.purple
+ else title.magenta
end
"#{bar}\n #{title}\n#{bar}\n\n"
end
@@ -217,10 +220,10 @@
output = ANSIRenderer.render(stream)
if paged
lesspipe { |less| less.puts output }
else
puts output
- end
+ end
end
#######################################################################################
opts, args = ARGV.partition { |arg| arg[/^--?\w/] }
\ No newline at end of file