Fix space included in links in modules API doc (#8818)
This commit is contained in:
parent
53a4d6c3b1
commit
61d3fdb474
@ -23,8 +23,8 @@ def markdown(s)
|
|||||||
# Add backquotes around macro and var names containing underscores.
|
# Add backquotes around macro and var names containing underscores.
|
||||||
l = l.gsub(/(?<![`A-z\*])[A-Za-z]+_[A-Za-z0-9_]+/){|x| "`#{x}`"}
|
l = l.gsub(/(?<![`A-z\*])[A-Za-z]+_[A-Za-z0-9_]+/){|x| "`#{x}`"}
|
||||||
# Link URLs preceded by space or newline (not already linked)
|
# Link URLs preceded by space or newline (not already linked)
|
||||||
l = l.gsub(/((?:^| )https?:\/\/[A-Za-z0-9_\/\.\-]+[A-Za-z0-9\/])/,
|
l = l.gsub(/(^| )(https?:\/\/[A-Za-z0-9_\/\.\-]+[A-Za-z0-9\/])/,
|
||||||
'[\1](\1)')
|
'\1[\2](\2)')
|
||||||
# Replace double-dash with unicode ndash
|
# Replace double-dash with unicode ndash
|
||||||
l = l.gsub(/ -- /, ' – ')
|
l = l.gsub(/ -- /, ' – ')
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user