Damien Elmes
19bbcb4cc0
Use backend for extracting cloze text to type
...
Closes #2311
2023-01-18 23:05:28 +10:00
Damien Elmes
ded805b504
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
d294fff882
Simplify solution for #2279
2022-12-19 18:13:34 +10:00
Damien Elmes
67acaa17e4
Fix panic when adding non-Latin text to fields
...
Closes #2279
2022-12-19 18:02:43 +10:00
TRIAEIOU
9901ae428a
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
d1ba48bc48
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
aeedb4dc11
Add check for out-of-place/missing clozes
2021-06-12 10:02:21 +02:00
Damien Elmes
64ebc32b3d
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
6f76b86f7c
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
10afe2883a
add cloze-only filter
...
https://anki.tenderapp.com/discussions/ankidesktop/42383-two-feature-suggestions
2020-07-21 12:59:28 +10:00
Damien Elmes
15ff279a96
cloze generation
2020-05-12 21:13:33 +10:00
Damien Elmes
c95983ac1f
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
ee27711b65
remove redundant test_ prefix
2020-02-17 08:40:17 +10:00
Damien Elmes
c890ef871e
include LaTeX png/svg files when checking for unused media
2020-02-17 08:40:17 +10:00
Damien Elmes
c075191697
reuse reveal_cloze_text() for LaTeX cloze expansion
2020-01-28 07:40:44 +10:00
Damien Elmes
9ad80f4d2c
move cloze-related code into a separate file
2020-01-27 20:41:23 +10:00