Skip to content

Indent headings

zamsyt edited this page Jun 10, 2023 · 10 revisions

Indent headings.css

Indent headings (and text under them)

Indent depth can be changed with the pixel value on line 4.

The number of headings per note this handles is limited, but the limit is easily increased by modifying the $max-headings variable in the SCSS source. I've set the default value to 10 for now. NB: Increasing the variable makes the snippet bigger.

image

Old version (archived)

Warning: This version is buggy. Not recommended.

Indent headings (counter).css

This was the first implementation of the snippet (using a counter).

Clone this wiki locally