Skip to content

Commit

Permalink
convert tags to lower case to avoid import issues
Browse files Browse the repository at this point in the history
  • Loading branch information
marph91 committed Oct 5, 2024
1 parent 495bdbb commit ff9047e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ def write_note(self, note: imf.Note):
# Arbitrary metadata will be ignored.
metadata = {}
if note.tags:
metadata["tags"] = [tag.title for tag in note.tags]
# Convert the tags to lower case before the import to avoid issues
# with special first characters.
# See: https://github.com/laurent22/joplin/issues/11179
metadata["tags"] = [tag.title.lower() for tag in note.tags]
supported_keys = [
"title",
"created",
Expand Down

0 comments on commit ff9047e

Please # to comment.