deathau / cm-show-whitespace-obsidian

A plugin for [Obsidian](https://obsidian.md) which shows whitespace in the editor.
53 stars 6 forks source link

Add example CSS to override a character #11

Open arnoesterhuizen opened 3 years ago

arnoesterhuizen commented 3 years ago

If you don't like the use of !important in the rule, another option is to reduce the specificity in https://github.com/deathau/cm-show-whitespace-obsidian/blob/main/styles.scss#L15 from body.plugin-cm-show-whitespace { to .plugin-cm-show-whitespace {. Then the example CSS doesn't need !important. There may be other side effects I'm not aware of, though.