Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting bug when using Week of Year in template #33

Closed
muness opened this issue Mar 31, 2021 · 4 comments
Closed

Formatting bug when using Week of Year in template #33

muness opened this issue Mar 31, 2021 · 4 comments

Comments

@muness
Copy link

muness commented Mar 31, 2021

For context, I am trying to add a link from daily notes back to the corresponding weekly note.

Observed behavior:

[[{{date:gggg}}
-W{{date:ww}}]]

[[{{date:gggg}}-W{{date:ww}}]]

Renders as

[[2021
-W14]]

[[2021}}-13{{3amt3:14]]

Desired behavior

[[{{date:gggg}}-W{{date:ww}}]]

should render as

[[2021-W14]]
@muness
Copy link
Author

muness commented Mar 31, 2021

Another example as I was trying to simplify the test case:

{{date:YYYY-MM}} {{date:YYYY-MM}}
2021-03}} {{3amt3:2021-03

So it's something about two date templates on the same line, maybe?

@liamcain
Copy link
Owner

Hi @muness, thanks for the report. Looks like it's a regression I introduced with the latest version. I can reproduce the issue and will have a fix shortly.

@liamcain
Copy link
Owner

This should be fixed in the new version 0.0.13. Let me know if you're still having issues.


Also, unrelated, but instead of [[{{date:gggg}}-W{{date:ww}}]], you can just do [[{{date:gggg-[W]ww}}]] for something a bit simpler 😄

@muness
Copy link
Author

muness commented Apr 1, 2021

@liamcain thanks for the quick fix!

believe me, it started with the [[{{date:gggg-[W]ww}}]] and got increasingly more complicated as I was trying to figure out what I was doing wrong and then realizing there was probably a regression to report. Went back to it after updating and it's working as expected again. Yay!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants