erykwalder / obsidian-list-style

MIT License
21 stars 2 forks source link

Idea: Custom list style types #4

Open ShahriarKh opened 2 years ago

ShahriarKh commented 2 years ago

What do you think about adding a settings page, where users can define custom list-style-types? Because list style type not only supports pre-defined values, but also unicodes, custom strings, and symbols.

Currently, it can be done simply with a custom css snippet (https://developer.mozilla.org/en-US/docs/Web/CSS/@counter-style):

@counter-style thumbs {
  system: cyclic;
  symbols: "\1F44D";
  suffix: " ";
}

/* ul {
  list-style: thumbs;
} */

and in the note:

1. {thumbs} Yes
2. It's
3. Great!

which results in: image

erykwalder commented 2 years ago

Hey, I probably won't implement this myself, but I'd take a PR.