markdown.obsidian.tags

Functions for Obsidian tags
# TODO: add examples, dog strings

source

to_tag_str

 to_tag_str (tag_name)

source

tag_without_hashtag

 tag_without_hashtag (tag)

source

tag_is_auto_tag

 tag_is_auto_tag (tag)

source

strip_auto_from_tag

 strip_auto_from_tag (tag, with_hash_tag:bool=True)

Returns the tag without the '_auto/' prefix.

This will essentially return the same tag if the tag does not have the '_auto/' prefix to begin with.

Parameters - tag - str - with_has_tag - bool - If True, returns a str with a hash tag '#' in front. Defaults to True.

strip_auto_from_tag('#_auto/definition', False)
'definition'