allow '{' and '}' in html urls
This commit is contained in:
parent
ec5c840f84
commit
40292454da
|
@ -109,6 +109,10 @@ class Wiki():
|
|||
# Handlebars partial ">"
|
||||
content = re.sub(r"\{\{>(.*?)\}\}", r'{{>\1}}', content)
|
||||
|
||||
# Handlebars, allow {{}} inside HTML links
|
||||
content = content.replace("%7B", "{")
|
||||
content = content.replace("%7D", "}")
|
||||
|
||||
content = re.sub(r"```(.*?)```", unescape_repl, content, flags=re.DOTALL)
|
||||
|
||||
cname = to_canonical(name)
|
||||
|
|
|
@ -71,6 +71,7 @@ var MDR = {
|
|||
} catch(e) {
|
||||
return this.md;
|
||||
}
|
||||
|
||||
if (sanitize) {
|
||||
// Causes some problems with inline styles
|
||||
html = html_sanitize(html, function(url) {
|
||||
|
|
Loading…
Reference in a new issue