Anki is a smart spaced repetition flashcard program
Find a file
Damien Elmes bf93731e49 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 10:33:36 +10:00
.github basic anti spam protection 2020-01-15 20:34:10 +10:00
meta bump version 2020-01-15 13:50:26 +10:00
proto more template rendering tweaks 2020-01-12 21:34:07 +10:00
pylib type hints 2020-01-16 09:19:53 +10:00
qt revert to the old wrap() behaviour 2020-01-16 10:33:36 +10:00
react add a web UI proof of concept 2020-01-06 14:28:07 +10:00
rslib allow an empty field name if filters are provided 2020-01-15 18:48:23 +10:00
rspy bump version 2020-01-15 13:50:26 +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 Small fixes and tweaks to "Tag Modified": 2020-01-15 10:46:05 +02:00
LICENSE drop pystache and move legacy code into separate file 2020-01-11 19:38:30 +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 update contrib to reflect the naming tweaks 2020-01-15 17:51:42 +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