removed hardcoded emoji from notes and folders
This commit is contained in:
parent
cac1ebb031
commit
b2f637d46f
3
.gitignore
vendored
3
.gitignore
vendored
@ -3,3 +3,6 @@ public/
|
||||
book/
|
||||
.vscode/
|
||||
__pycache__/
|
||||
content/
|
||||
static/resources/
|
||||
mdbook.exe
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user