Damien Elmes
a66d2472dd
Use backend for extracting cloze text to type
...
Closes #2311
2023-01-18 23:05:28 +10:00
Damien Elmes
7216032e82
Switch Rust import style ( #2330 )
...
* Prepare to switch Rust import style
* Run nightly format
Closes #2320
* Clean up a few imports
* Enable comment wrapping
* Wrap comments
2023-01-18 21:39:55 +10:00
Damien Elmes
aa3399c51a
Simplify solution for #2279
2022-12-19 18:13:34 +10:00
Damien Elmes
5e1bf95af2
Fix panic when adding non-Latin text to fields
...
Closes #2279
2022-12-19 18:02:43 +10:00
TRIAEIOU
53ddc6f107
Nested clozes and increased cloze meta data ( #2141 )
...
* Nested clozes and increased cloze meta data
* Update contributors
* This reverts commit 3423df73f8 .
* Update CONTRIBUTORS
* Formating
* Formating
* Formating
* Formating
* Formating
* Formating
* Formating
* Formating
* Code refactor
* Formating
* Formating
* Formating
* Formating and dead code
* Correct test case
* Remove Hint and Close storage of token string
* Update
* Formating
* Formating
* Formating
* Use write! instead of .push_str(&format).
* Formating
2022-12-19 12:03:15 +10:00
Matthias Metelka
d4dfa0c9ec
Expose cloze text as HTML attribute on question side ( #1968 )
...
* Expose cloze text as attribute on front side
* Update test_models.py
* Update template_filters.rs
* Escape HTML for data-attribute
* Use minimal HTML encoding in Rust
to match Python's html.escape and pass tests.
* Rename attribute to data-cloze
to make it more generic.
* Run formatter
* Revert to using Rust encode_attribute and add helper function for tests
2022-07-19 04:22:57 +10:00
RumovZ
4fb2299386
Add check for out-of-place/missing clozes
2021-06-12 10:02:21 +02:00
Damien Elmes
363a843d07
tidy up Rust imports
...
rustfmt can do this automatically, but only when run with a nightly
toolchain, so it needs to be manually done for now - see rslib/rusfmt.toml
2021-04-18 18:38:54 +10:00
Damien Elmes
f4bd143050
handle multiple clozes in cloze-only filter
...
https://forums.ankiweb.net/t/built-in-tts-not-reading-multiple-clozes/1516
2020-07-29 12:54:29 +10:00
Damien Elmes
61f0c3eec0
add cloze-only filter
...
https://anki.tenderapp.com/discussions/ankidesktop/42383-two-feature-suggestions
2020-07-21 12:59:28 +10:00
Damien Elmes
9451d0e9ef
cloze generation
2020-05-12 21:13:33 +10:00
Damien Elmes
f2876cbd42
preserve entities when stripping HTML for MathJax
...
https://anki.tenderapp.com/discussions/ankidesktop/40987-how-to-render-angled-brackets
2020-04-30 11:17:38 +10:00
Damien Elmes
8f34c720b8
remove redundant test_ prefix
2020-02-17 08:40:17 +10:00
Damien Elmes
d557312f73
include LaTeX png/svg files when checking for unused media
2020-02-17 08:40:17 +10:00
Damien Elmes
86a580d820
reuse reveal_cloze_text() for LaTeX cloze expansion
2020-01-28 07:40:44 +10:00
Damien Elmes
d598ce45fe
move cloze-related code into a separate file
2020-01-27 20:41:23 +10:00