LilaRest / obsidian-stylist

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:MIT License


Languages

Language:TypeScript 75.7%Language:JavaScript 24.3%