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:
parent
142976f012
commit
7596ff2eda
@ -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({
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user