argenos / nldates-obsidian

Work with dates in natural language in Obsidian
MIT License
490 stars 44 forks source link

Natural language in the date format parser #87

Closed ghost closed 2 years ago

ghost commented 2 years ago

How can I do something like this without the parser rendering the first part of the tag? I've tried a couple of special characters, but none of them seem to work.

Example: #date/YYYY-MM-DD

liamcain commented 2 years ago

Hi, could you provide some more information about what you're trying to do? It sounds like you just want #date/ to be visually hidden, is that right?

ghost commented 2 years ago

Hi, could you provide some more information about what you're trying to do? It sounds like you just want #date/ to be visually hidden, is that right?

No, what I want is for the first part "#date/" to always be rendered like that and not to be interpreted by the parser.

What I currently get: #5amt5/2022-03-04 What I want: #date/2022-03-04

liamcain commented 2 years ago

Oh, you can just surround that part of the format with brackets:

[#date]/YYYY-MM-DD