add some escapes so markdown renders better

This commit is contained in:
mgcaret 2020-01-20 23:09:09 -08:00
parent bc6b58404d
commit d41e9d72aa
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,9 @@ puts
index.keys.sort.each do |word|
word_info = index[word]
puts "## #{word}"
cword = word.gsub(/^(#+)$/) { "\\#{$1}" } # let '#' display properly
cword.gsub!(/^([<>])/) { "\\#{$1}" }
puts "## #{cword}"
puts
if word_info['help']
word_info['help'].each_with_index do |line, i|