1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-30 10:36:35 +02:00

Mobile, Desktop: Disable BASE html tag, which can break certain plugins such as Katex

This commit is contained in:
Laurent Cozic 2020-04-12 23:00:36 +01:00
parent 142976f012
commit 7596ff2eda

View File

@ -88,7 +88,11 @@ class HtmlUtils {
return tagStack[tagStack.length - 1];
};
const disallowedTags = ['script', 'iframe', 'frameset', 'frame', 'object'];
// The BASE tag allows changing the base URL from which files are loaded, and
// that can break several plugins, such as Katex (which needs to load CSS
// files using a relative URL). For that reason it is disabled.
// More info: https://github.com/laurent22/joplin/issues/3021
const disallowedTags = ['script', 'iframe', 'frameset', 'frame', 'object', 'base'];
const parser = new htmlparser2.Parser({