feat(anki): basic cli using typer

This commit is contained in:
arne314
2024-12-22 22:53:10 +01:00
parent ac353e5c74
commit 1124181f59
6 changed files with 120 additions and 17 deletions

View File

@@ -34,7 +34,7 @@ class Flashcard:
def as_html(self, front: bool) -> str:
prefix = f"<p hidden>{self.front}: {self.back}{' ' * 10}</p>" # indexable via anki search
image = f'<img src="{self.svg_filename(front)}" width=100 />'
image = f'<img src="{self.svg_filename(front)}" />'
return prefix + image
def as_anki_model(self, tmp: bool = False) -> dict: