mirror of
https://github.com/mgcaret/of816.git
synced 2025-01-14 02:32:09 +00:00
add some escapes so markdown renders better
This commit is contained in:
parent
bc6b58404d
commit
d41e9d72aa
@ -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|
|
||||
|
Loading…
x
Reference in New Issue
Block a user