platers / obsidian-linter

An Obsidian plugin that formats and styles your notes with a focus on configurability and extensibility.
https://platers.github.io/obsidian-linter/
MIT License
1.21k stars 82 forks source link

FR: Normal replace or antonym substitution #858

Open yoghurtdewdew opened 1 year ago

yoghurtdewdew commented 1 year ago

Is Your Feature Request Related to a Problem? Please Describe.

Custom regex would be useful if I know more about that. Normal replacement would work for below: /##,

image

Describe the Solution You'd Like

I have no idea how to make it.

Describe Alternatives You've Considered

Manually.

Additional Context

Thanks for your brilliant plug-in!

zanodor commented 1 year ago

Normal replace can be used if special characters are escaped with \ (not /).
If you learn some regex, it will be very beneficial in the future.

yoghurtdewdew commented 1 year ago

Hi! Thanks for your advice! I wonder if linter would support normal replace as /## ?

image
pjkaufman commented 10 months ago

Hey @yoghurtdewdew . Sorry about the delay in responding to your last message. I am not 100% sure what the issue is wit your regex. So long as you are trying to convert /# to # it should work from my understanding. If you are trying to replace \# with # you will need to use a find value of \\# since \ is a special character.

I hope this helps.