Skip to content

Obsidian plugin that allows to add classes and styles on markdown blocks

License

Notifications You must be signed in to change notification settings

ixth/obsidian-stylist

Repository files navigation

Obsidian Stylist

Stylist is a plugin for Obsidian that allows to add classes and styles on markdown.

Note This plugin doesn't work in Live Preview mode.

Examples

For example, if you want to add underline for headings on one particular page, you can do it like this:

```style
h2 {
    text-decoration: underline;
}
```

## Does wood sink in water?

Result:

Style tag render Style tag render

Note All styles are processed to prevent messing up the rest of the Obsidian app.

Or if you want certain blocks on your page to use multi-column layout, you can just add class on containing block:

```style
.multicol-3 ul {
    columns: 3;
}
```

## What also floats in water?

%% Class will be added not to the list element itself,
    but to section container, so you should write styles respectively %%

`classname:multicol-3`

* Bread
* Apples
* Very small rocks
* Cider
* Grape gravy
* Cherries
* Mum
* Churches
* Lead
* A duck

Result:

Class render Class render