Anki is a smart spaced repetition flashcard program
Find a file
Damien Elmes cd15329d59 revert to the old wrap() behaviour
wrap2() was introduced recently to try and resolve an issue where
styling outside of the wrapped section was getting lost. eg,

<b>some [text] etc</b>

When the user created a cloze deletion or added math tags to the [text]
part, the text ended up not being bold - the inner portion is displayed
without styling.

wrap2() used setFormat("inserttext", ...), which did fix that issue
- but it also introduced multiple new issues:

- any HTML inside the selected area, including newlines and images,
was lost
- the unicode entities inserted when creating a cloze deletion in
RTL mode end up inserted as plain text

For now, I'm just going to revert to the old behaviour. If anyone
has a suggestion for an approach that is able to preserve both the
inner formatting and the surrounding formatting, a pull request
or post on the forums would be appreciated!
2020-01-16 12:39:24 +10:00
.github remove stray character 2020-01-07 18:44:44 +10:00
meta update version 2020-01-14 15:47:32 +10:00
proto replace fields and apply standard filters in rslib 2020-01-10 18:02:26 +10:00
pylib include py.typed for mypy 2020-01-14 15:48:43 +10:00
qt revert to the old wrap() behaviour 2020-01-16 12:39:24 +10:00
react add a web UI proof of concept 2020-01-06 14:28:07 +10:00
rslib fix type:cloze handling 2020-01-11 19:38:41 +10:00
rspy update version 2020-01-14 15:47:32 +10:00
svelte add svelte experiment as well 2020-01-06 16:23:55 +10:00
tslib add some typescript helpers for displaying the card list 2020-01-06 13:11:55 +10:00
.gitignore output into dist/ 2020-01-03 14:32:26 +10:00
CONTRIBUTORS Update CONTRIBUTORS 2020-01-09 08:13:07 +10:00
LICENSE revert the template changes for the 2.1.17 release 2020-01-11 20:15:31 +10:00
Makefile make sure pyenv is active when fixing 2020-01-10 13:07:12 +10:00
pkgkey.asc add public key for release signing 2018-09-18 10:40:45 +10:00
README.contributing request type hints in new contributions 2020-01-14 15:48:58 +10:00
README.development bump minimum python version from 3.6 to 3.7 2020-01-07 18:34:36 +10:00
README.md update docs 2020-01-02 19:55:27 +10:00
run move top level scripts into makefile 2020-01-04 12:21:58 +10:00

This repo contains all the code for the computer version of Anki.

If you'd like to try development builds of Anki but don't feel comfortable building the code, please see https://anki.tenderapp.com/discussions/beta-testing

For more information on building, please see README.development

If you'd like to contribute code, please see README.contributing