raineszm28k downloadsQuickly insert and change LaTeX environments within math environments.
Quickly insert and change latex environments within math blocks in Obsidian.
The internals have been rewritten for version 0.3.0. See Version 0.3.0 rewrite below.
If you have Obsidian version 0.9.8 or greater:
Third-party pluginssafe-mode is off. (WARNING: Please verify for yourself the safety of any plugins before using them.)Browse next to Community PluginsLatex EnvironmentsInstallThird-party plugins page and enable Latex EnvironmentsTo update simply go back to the Third-Party plugins page for Latex Environments and click Update.
To manually install
zipfrom the latest Github Release.plugins/obsidian-latex-environments subdirectory of your vault.For details see the forums.

This plugin currently provides 3 commands, which do not have default bindings. Both commands only work when the cursor is inside a math block. Both commands will also query for the name of the environment.
Insert a new LaTeX environment at the cursor.
With a selection inserts a new LaTeX environment around the selection. 0.
Change the name of the surrounding LaTeX environment.
If the cursor is on a \begin or \end, it is the corresponding environment that will be changed.
Remove the innermost LaTeX environment enclosing the cursor.
In order to support the Live Preview feature of obsidian the internals of this plugin needed to be rewritten. The aim is to leave functionality unaffected but there may be some differences from previous versions. Please file a bug report if you discover something that worked with 0.2.0 but not 0.3.0
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.