scope=$1.gsub(" ", "-")
end
# First, mark note reference
- lin.sub!(/([a-z]\.["”]?)(\d+)(\s)/, "\\1[^" + scope + "-\\2]\\3")
- lin.sub!(/([a-z]\.["”]?)(\d+)$/, "\\1[^" + scope + "-\\2]")
+ lin.sub!(/([a-z][\.\)]+["”]?)(\d+)(\s)/, "\\1[^" + scope + "-\\2]\\3")
+ lin.sub!(/([a-z][\.\)]+["”]?)(\d+)$/, "\\1[^" + scope + "-\\2]")
# Next, mark note content, only between /Web Links?|Notes/ and next heading
if noteblock
lin.sub!(/^(\d+)\. /, "[^" + scope + "-\\1]: ")