Unverified Commit 61d3fdb4 authored by Viktor Söderqvist's avatar Viktor Söderqvist Committed by GitHub
Browse files

Fix space included in links in modules API doc (#8818)

parent 53a4d6c3
...@@ -23,8 +23,8 @@ def markdown(s) ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment