Replace special characters with their HTML equivalents
This commit is contained in:
parent
f3dd296290
commit
d53d80cb4b
|
@ -156,6 +156,10 @@ do
|
||||||
bullist=0 # Whether or not a bulleted list was just formed
|
bullist=0 # Whether or not a bulleted list was just formed
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
# Replace special characters with their HTML equivalents
|
||||||
|
gsub(/</, "\\<")
|
||||||
|
gsub(/>/, "\\>")
|
||||||
|
gsub(/=>/, "=>")
|
||||||
# If the line is ```, toggle preformatted text
|
# If the line is ```, toggle preformatted text
|
||||||
if ($1 == "```") {
|
if ($1 == "```") {
|
||||||
# The next four lines check if the previous line was part of a
|
# The next four lines check if the previous line was part of a
|
||||||
|
|
Loading…
Reference in New Issue