Ignoring colons in ref footnote definitons
Preparation for transition to Markdownmaster
parent
a485238ca0
commit
0b31902f19
4
msgfmt
4
msgfmt
|
@ -54,7 +54,7 @@ while getopts nP opt; do
|
|||
done
|
||||
|
||||
# calculate this after options have been parsed
|
||||
refopar="${opar:+${opar%>} id="ref-\\1" class="ref">}"
|
||||
refopar="${opar:+${opar%>} id="ref-\\2" class="ref">}"
|
||||
|
||||
# format the commit message, stopping at the diff (if any)
|
||||
awk -vid="$id" -vurl_root="${url_root%/}" -vcref_errlog="$cref_errlog" '
|
||||
|
@ -107,7 +107,7 @@ awk -vid="$id" -vurl_root="${url_root%/}" -vcref_errlog="$cref_errlog" '
|
|||
s#<a href="\([^"]\+\)\([.;,!]\)">\([^<]\+\).</a>#<a href="\1">\3</a>\2#g;
|
||||
|
||||
# reference definitions (footnotes)
|
||||
s#\n\[\([0-9]\+\)\]#'"$epar$refopar"'&#g;
|
||||
s#\(\n\[\([0-9]\+\)\]\):\?#'"$epar$refopar"'\1#g;
|
||||
|
||||
# references in text (note that references that enclose text as a hyperlink
|
||||
# must not start with a number, otherwise they will be considered to be a
|
||||
|
|
Loading…
Reference in New Issue