convert.sed
... ...
@@ -23,6 +23,10 @@ s/^\(#\+\)\s\+[0-9.]\+\s\+/\1 /
23 23
# strip dead links
24 24
/\?/ s/\[\(\w\+\)\]\[[0-9]*\]\[?\]\[[0-9]*\]/\1/g
25 25
s/\[\([^]]\+\)]\[[0-9]\+]\[?]\[[0-9]\+]/\1/g
26
+# fix backtick code
27
+# action=markdown inserted spaces between backtick and start of word which
28
+# gollum doesn't render as code
29
+s/\(^[^`]*\)`\s\+\([^`]\+\)\s\+`/\1`\2`/g
26 30
27 31
# Convert page titles
28 32
1 {