diff --git a/src/formats/cherrytree.py b/src/formats/cherrytree.py index 6c42c7f..fb61f04 100644 --- a/src/formats/cherrytree.py +++ b/src/formats/cherrytree.py @@ -252,7 +252,13 @@ def convert_to_markdown(self, node, root_notebook): # If the cherrytree node is only used to contain children (i. e. a folder), # don't create a superfluous empty note. if not note_imf.is_empty(): - root_notebook.child_notes.append(note_imf) + # Create the note below the notebook with the same name, + # to stay compatible with the obsidian folder note plugins. + # See: https://github.com/marph91/jimmy/issues/29 + parent_notebook = ( + root_notebook if new_root_notebook is None else new_root_notebook + ) + parent_notebook.child_notes.append(note_imf) def convert(self, file_or_folder: Path): self.root_path = common.get_temp_folder() diff --git a/src/formats/zoho_notebook.py b/src/formats/zoho_notebook.py index 8453e62..c2448b3 100644 --- a/src/formats/zoho_notebook.py +++ b/src/formats/zoho_notebook.py @@ -12,9 +12,6 @@ import markdown_lib - - - class Converter(converter.BaseConverter): accepted_extensions = [".zip"] diff --git a/test/data b/test/data index a4db042..e10753a 160000 --- a/test/data +++ b/test/data @@ -1 +1 @@ -Subproject commit a4db042bde0395e25fb666aa91f1b0aed192acda +Subproject commit e10753ae6da232018e878d292de13eb6e341575d