johansatge / obsidian-automatic-table-of-contents

💠 An Obsidian plugin to create a table of contents in a note, that updates itself when the note changes
MIT License
128 stars 12 forks source link

Ignore emojis #30

Closed jerrygreen closed 7 months ago

jerrygreen commented 7 months ago

I like emojis in the beginning of a title, but I would like them to be stripped from the TOC because they make too much noise there:

image

johansatge commented 7 months ago

I personnally like emojis and would like to keep them 😄 but there could be some includeEmojis: true|false option (default true)

Not sure how to efficiently target emojis though, maybe some regex to catch the right unicode.

jerrygreen commented 7 months ago

On the other hand, after making a snippet to make links non-underlined, I kind-of like the emoji in the list now 😅

I guess it's just weird for me seeing emoji underlined.

For emoji regex, yes, there's a package for that: https://www.npmjs.com/package/emoji-regex

If you still make such an option, I might as well try it. But currently I don't need it as much as I thought.