You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +02:00 
			
		
		
		
	Mobile, Desktop: Disable BASE html tag, which can break certain plugins such as Katex
This commit is contained in:
		| @@ -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({ | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user