mirror of
https://github.com/redis/redis.git
synced 2026-06-09 00:33:08 -04:00
Fix space included in links in modules API doc (#8818)
This commit is contained in:
parent
53a4d6c3b1
commit
61d3fdb474
1 changed files with 2 additions and 2 deletions
|
|
@ -23,8 +23,8 @@ def markdown(s)
|
|||
# Add backquotes around macro and var names containing underscores.
|
||||
l = l.gsub(/(?<![`A-z\*])[A-Za-z]+_[A-Za-z0-9_]+/){|x| "`#{x}`"}
|
||||
# Link URLs preceded by space or newline (not already linked)
|
||||
l = l.gsub(/((?:^| )https?:\/\/[A-Za-z0-9_\/\.\-]+[A-Za-z0-9\/])/,
|
||||
'[\1](\1)')
|
||||
l = l.gsub(/(^| )(https?:\/\/[A-Za-z0-9_\/\.\-]+[A-Za-z0-9\/])/,
|
||||
'\1[\2](\2)')
|
||||
# Replace double-dash with unicode ndash
|
||||
l = l.gsub(/ -- /, ' – ')
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue