kemayo / obsidian-smart-links

MIT License
26 stars 4 forks source link

Allow alternative rendered text #9

Open nima opened 1 year ago

nima commented 1 year ago

The point of this change is to allow a further configuration option where user can decide what the rendered text would look like. For example:

Where previously, the two following settings options would render into the third:

Now you can decide what the rendered text should look like, and what parts of that are active; i.e., three options (rather than two), the third defining both the full rendered text, and what part of it is clickable (between braces):

Additionally you can add emojis to the linked (or unlinked) rendered html element.

nima commented 1 year ago

I have to write more tests for this, I've discovered some edge cases that don't render correctly.