From b2f637d46f07bea27cd0cbb4d7861cf6fa2b9580 Mon Sep 17 00:00:00 2001 From: Yuriy Date: Fri, 5 Jul 2024 19:16:40 -0400 Subject: [PATCH] removed hardcoded emoji from notes and folders --- .gitignore | 3 +++ joplinexport | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3d1e31d..4c35674 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,6 @@ public/ book/ .vscode/ __pycache__/ +content/ +static/resources/ +mdbook.exe diff --git a/joplinexport b/joplinexport index 4fe79c6..c815777 100755 --- a/joplinexport +++ b/joplinexport @@ -53,7 +53,7 @@ class Folder: """Get the appropriate summary file line for this folder.""" return ( (" " * (level - 1)) - + f"- [{self.icon if self.icon else '📁'} " + + f"- [{self.icon if self.icon else ''}" + f"{self.title}]({self.get_url()}/index.md)" ) @@ -105,7 +105,7 @@ class Note: """ return ( " " * (level - 1) - ) + f"{'- ' if level > 0 else ''}[🗈 {self.title}]({self.get_url()}.md)" + ) + f"{'- ' if level > 0 else ''}[{self.title}]({self.get_url()}.md)" def __lt__(self, other: Union["Folder", "Note"]) -> bool: """Support comparison, for sorting.""" @@ -327,6 +327,7 @@ class JoplinExporter: # Special-case the introduction. if introduction: outfile.write(introduction.get_summary_line(0) + "\n") + print("\n".join(items)) outfile.write("\n".join(items)) def export(self):