ankitects / ankitects/anki

Style tags get removed when exporting flashcards in .txt format

Open
#4,044 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
30.5k
Forks
3.2k
Avg merge
2d 8h
Merged PRs (30d)
72

Description

I noticed that when exporting notes on .txt format, all `` tags (not inline styling) for adding custom CSS to flashcards get removed.
I need to export flashcards as plain text for translating them, but this breaks the cards that were using custom styling and I can't find a workaround.

Version ⁨25.02.4 (a5c33ad0)⁩
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue through the flashcard .txt export path described in the report, comparing cards with custom tags against cards using inline styling. Trace where the exported text is assembled and verify that non-inline style tags remain available for translation; add or update regression coverage for both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.