Fix links getting linified when they shouldn't
This commit is contained in:
@@ -11,6 +11,7 @@ BEGIN { in_fence = 0; first_line = 0 }
|
||||
next
|
||||
}
|
||||
if (in_fence) {
|
||||
gsub(/&/, "\\&"); gsub(/</, "\\<"); gsub(/>/, "\\>")
|
||||
if (first_line) {
|
||||
first_line = 0
|
||||
if ($0 == "") next
|
||||
|
||||
@@ -2,7 +2,7 @@ BEGIN { in_code = 0 }
|
||||
/^ | / {
|
||||
if (!in_code) { print "<pre><code>"; in_code = 1 }
|
||||
sub(/^ | /, "", $0)
|
||||
gsub(/&/, "&"); gsub(/</, "<"); gsub(/>/, ">")
|
||||
gsub(/&/, "\\&"); gsub(/</, "\\<"); gsub(/>/, "\\>")
|
||||
print; next
|
||||
}
|
||||
{ if (in_code) { print "</code></pre>"; in_code = 0 } print }
|
||||
|
||||
Reference in New Issue
Block a user