Cooper
August 9, 2023, 12:52pm
1
A way to turn of HTML sanitisation
I want to try and automate my vault by using JavaScript html tags but Obsidian sanitises it out so I cannot run the code. Is there a way to turn of sanitisation in obsidian using a
third party plugin or basic feature that allows me to do this
Not that I know of. If you want to use JavaScript you can write a plugin or use the Templater or DataView plugins.
gino_m
August 10, 2023, 9:14am
3
Obsidian plugins with scripting capabilities
An older one:
Contribute to cristianvasquez/obsidian-snippets-plugin development by creating an account on GitHub.
This (also) would only work with the Legacy Editor:
Text Expander plugin for Obsidian
Since then, there are still available for installation:
Execute system commands via hotkeys or command palette in Obsidian (https://obsidian.md). Some automated events are also supported, and execution via URI links.
About Terminal plugin for Obsidian (https://obsidian.md/) - Supports editing files with Neovim and other terminal based editors!
However, these are only made for desktop.
The Templater plugin can be used to run shell commands - also on mobile devices.
A template plugin for obsidian
There is also Inline Scripts - also for mobile use:
Obsidian plugin: Type text shortcuts that expand into javascript generated text.
The QuickAdd plugin also has such an InlineScript function:
This one is only for desktop:
Obsidian Plugin to execute code in a note.
For mobile
Integrate consoles, shells, and terminals.
According to the Manifest file, it would also work on mobile.