-
Notifications
You must be signed in to change notification settings - Fork 80
Custom tag template
Stanislav Petrashov edited this page Jan 9, 2021
·
1 revision
Evernote2md allows configuring the way tags are presented in the output markdown file.
To override the tag template, use --tagTemplate
or simply -t
option with a format you would like to see. The template must contain one entry of the tag variable "{{tag}}", which evernote2md replaces with the tag name. Other characters in the string you provide will appear in the output file as-is.
Valid templates:
"`{{tag}}`"
"@{{tag}}"
"#{{tag}}#"
If the note has multiple tags, all of them will appear in the markdown file separated with space. Spaces inside the tag will be replaced with underscores for custom templates.
Example:
note.enex
with the title "My Note" and tags "Personal" "top secret"
evernote2md --tagTemplate "@{{tag}}" note.enex ./notes
The output file ./notes/My_Note.md
will contain:
# My note
@Personal @top_secret
...