mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Disable linkify on <code> tags
This commit is contained in:
parent
ff23f981e2
commit
287aae8bd2
@ -79,7 +79,9 @@ def render_markdown(source):
|
|||||||
tags=ALLOWED_TAGS,
|
tags=ALLOWED_TAGS,
|
||||||
attributes=ALLOWED_ATTRIBUTES,
|
attributes=ALLOWED_ATTRIBUTES,
|
||||||
protocols=ALLOWED_PROTOCOLS,
|
protocols=ALLOWED_PROTOCOLS,
|
||||||
filters=[partial(LinkifyFilter, callbacks=[linker_callback] + bleach.linkifier.DEFAULT_CALLBACKS, skip_tags={"pre"})])
|
filters=[partial(LinkifyFilter,
|
||||||
|
callbacks=[linker_callback] + bleach.linkifier.DEFAULT_CALLBACKS,
|
||||||
|
skip_tags={"pre", "code"})])
|
||||||
return cleaner.clean(html)
|
return cleaner.clean(html)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user