1
0
mirror of https://github.com/mgcaret/of816.git synced 2024-05-28 14:41:27 +00:00

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

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|