Remove # in tag names
This commit is contained in:
parent
d1d89794d5
commit
28eeacbba4
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
**.egg-info/*
|
||||||
|
__pycache__
|
|
@ -15,11 +15,14 @@ def modify_article_content(article_generator, content):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def modify_metadata(article_generator, context):
|
def modify_metadata(article_generator, metadata):
|
||||||
"""
|
"""
|
||||||
Modify the metadata
|
Modify the tags so we can define the tags as we are used to in obsidian.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
for tag in metadata['tags']:
|
||||||
|
if '#' in tag.name:
|
||||||
|
tag.name = tag.name.replace('#', '')
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
|
|
Loading…
Reference in New Issue
Block a user