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/
|
book/
|
||||||
.vscode/
|
.vscode/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
content/
|
||||||
|
static/resources/
|
||||||
|
mdbook.exe
|
||||||
|
@ -53,7 +53,7 @@ class Folder:
|
|||||||
"""Get the appropriate summary file line for this folder."""
|
"""Get the appropriate summary file line for this folder."""
|
||||||
return (
|
return (
|
||||||
(" " * (level - 1))
|
(" " * (level - 1))
|
||||||
+ f"- [{self.icon if self.icon else '📁'} "
|
+ f"- [{self.icon if self.icon else ''}"
|
||||||
+ f"{self.title}]({self.get_url()}/index.md)"
|
+ f"{self.title}]({self.get_url()}/index.md)"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ class Note:
|
|||||||
"""
|
"""
|
||||||
return (
|
return (
|
||||||
" " * (level - 1)
|
" " * (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:
|
def __lt__(self, other: Union["Folder", "Note"]) -> bool:
|
||||||
"""Support comparison, for sorting."""
|
"""Support comparison, for sorting."""
|
||||||
@ -327,6 +327,7 @@ class JoplinExporter:
|
|||||||
# Special-case the introduction.
|
# Special-case the introduction.
|
||||||
if introduction:
|
if introduction:
|
||||||
outfile.write(introduction.get_summary_line(0) + "\n")
|
outfile.write(introduction.get_summary_line(0) + "\n")
|
||||||
|
print("\n".join(items))
|
||||||
outfile.write("\n".join(items))
|
outfile.write("\n".join(items))
|
||||||
|
|
||||||
def export(self):
|
def export(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user