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

pyomd removes underscores from front matter #20

Open
acepelon opened this issue Jan 30, 2023 · 0 comments
Open

pyomd removes underscores from front matter #20

acepelon opened this issue Jan 30, 2023 · 0 comments

Comments

@acepelon
Copy link

Might be related to the other new bug, but if I run pyomd to move front matter similar to:

---
date: 2023_0129 
---

to dataview inline, the date shows up in the dataview inline as:
date:: 20230129
meaning, it removed the underscore (which I need).

I have this naming convention for dates in pretty much every one of my files, sadly. Hopefully this is an easy fix?

Thanks!
ACE

full syntax:

from pyomd import Notes
from pyomd import Note
from pyomd.metadata import MetadataType
from pathlib import Path
path = Path('/Users/acepelon/git/example-vault/media/test.md')
notes = Notes(path) 
notes.metadata.move(fr=MetadataType.FRONTMATTER, to=MetadataType.INLINE)
print (notes.notes)
notes.update_content(inline_inplace=False, inline_position="top",inline_tml="callout")
notes.write()
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

1 participant