erallie1k downloadsInserts user-defined CSS snippets into the selected text.
This is a plugin for Obsidian that inserts user-defined css snippets into the selected text.
This plugin is a fork of Style Text by Juanjo Arranz.
The main difference between this plugin and Style Text is that with CSS Inserter you can specify the html tag, the class, and the style for each CSS snippet.
This plugin requires basic knowledge of CSS. Links on how to format each setting can be found under Set up CSS snippets.
After installing the plugin, first go to Settings → CSS Inserter and set up your CSS snippets the way you want.
Give your snippet a name and specify the HTML tag, the class, and the style you want the snippet to apply. Only a name and a tag are required. If you do not want to use the other options, leave them blank.
Here is a list of HTML tags to use.
And here is a guide on how to format the style part of the CSS snippet. Everything within the quotes following
style=should be entered in the CSS snippet.

You can re-order snippets by pressing the up arrow ( ) and down arrow ( ) buttons next to the snippet, or delete the entire snippet by pressing the trash bin ( ) button.
The toggle option next to the snippet disables/enables showing the CSS snippet in the Context menu.
To apply or remove a CSS snippet, first go into Edit mode and select the text you want to apply the snippet to or remove the snippet from. The first time you select text that already has CSS snippets applied, the entire text will automatically be selected for you (on desktop only).
After you do that, there are three ways you can apply or remove a CSS snippet:

To install this plugin via the Obsidian Marketplace, perform the following steps:
Install this plugin using BRAT by doing the following:
https://github.com/Erallie/css-inserter into the input field and select Add Plugin.To install this plugin manually, follow these steps:
main.js, manifest.json, and styles.css.[vault root]/.obsidian/plugins) and create a new subfolder called css-inserter.