This commit is contained in:
parent
7207d0528e
commit
f937fd551e
@ -46,6 +46,7 @@ function replaceInline(line, result, start, end) {
|
|||||||
line = substr(line, 1, start-1) "<em>" substr(line, start+1, RLENGTH-2) "</em>" substr(line, end+1)
|
line = substr(line, 1, start-1) "<em>" substr(line, start+1, RLENGTH-2) "</em>" substr(line, end+1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Replace occurances of [link](url) with <a href="url">link</<a>
|
||||||
while (match(line, /\[([^\]]+)\]\([^\)]+\)/)) {
|
while (match(line, /\[([^\]]+)\]\([^\)]+\)/)) {
|
||||||
start = RSTART
|
start = RSTART
|
||||||
end = RSTART + RLENGTH - 1
|
end = RSTART + RLENGTH - 1
|
||||||
|
Loading…
Reference in New Issue
Block a user