Indent wrapped lines - similar to text editors

Many code editors indent line wraps a little, so that users can distinguish between line wraps and manual, intentional line breaks.

Taking Pycharm as an example – it’s clear that the will get wrapped is part of the first line:
image

Obsidian doesn’t make it possible for us:

So I’ve written a short snippet which mostly solves this:

obsidian-wrap-indent.css (github gist)

You can change the --wrap-indent variable if you want a different amount of indentation.

Known limitations, simply because my CSS skills aren’t very impressive:

  1. Skips lines with aliased links.
  2. Doesn’t work in Reading View.