Commit graph

19 commits

Author SHA1 Message Date
Damien Elmes
8737c6737b another fix for mathjax+cloze 2017-09-12 13:53:08 +10:00
Damien Elmes
67728e73d7 fix broken cloze deletion 2017-09-10 19:51:25 +10:00
Damien Elmes
593569d0dc only strip formatting when inside mathjax 2017-09-08 19:35:34 +10:00
Damien Elmes
4990b2f8eb mathjax tweaks
- drop support for $$ in favour of separate opening and closing tags
- add shortcuts to add mathjax
- don't highlight any clozes in blue if field contains mathjax chars
2017-09-08 19:20:37 +10:00
Illia Volochii
13b7e01044 Stop inheriting from object
It is not needed in Python 3.
2017-02-07 00:21:33 +02:00
Damien Elmes
0c20da1069 fix conditional templates 2016-06-30 22:23:31 +10:00
Damien Elmes
f6f9b767c0 remove loop part of templating code
str has __iter__ on python3 which breaks templates
2016-05-13 14:33:32 +10:00
Damien Elmes
15b349e3a8 start port to python 3
unit tests pass and main screens of GUI load
2016-05-12 14:45:35 +10:00
Damien Elmes
fa57fd3ad9 don't fail if \n in cloze 2014-04-21 14:50:18 +09:00
Julien Baley
fac360d744 Allows smoother transition from old modifier syntax {{a🅱️fld}} to new one {{a(b):fld}} 2014-04-14 17:21:28 +01:00
Julien Baley
90fd1c00c8 Adding support for parameters in modifiers: {{mod1(param1,param2):mod2(param3):field}} 2014-03-12 14:21:23 +00:00
Damien Elmes
4c65c594dd don't force cloze to start
This allows {{kana:cloze:Text}} to work. May allow users to
shoot themselves it the foot - will see how it goes in the wild
and reconsider if necessary
2014-02-19 21:21:11 +09:00
Julien Baley
777a3b8ec3 Fixes behaviour for {{type:cloze:Field}} 2014-02-19 10:09:48 +00:00
Julien Baley
fb1a255358 Chained modifiers are processed from innermost to outermost (i.e. rtl). Except cloze/type. 2014-02-19 07:32:04 +00:00
Julien Baley
7e3597fb8e Adding support for chained modifiers. One can now write e.g. {{cloze:text:Field}} or {{text:cloze:Field}}, it's order independent. 2014-02-18 17:24:28 +00:00
Damien Elmes
fe0ed4dac9 fix replacement of other clozes
https://anki.tenderapp.com/discussions/ankidesktop/2904-cloze-deletion-behaves-oddly-instead-of-giving-error-when-single-colon-is-used?mail_type=queue
2013-09-16 13:28:19 +09:00
Damien Elmes
1203775aef ignore html in conditional tags 2013-01-29 09:14:28 +09:00
Damien Elmes
b2457811a2 optimize imports 2012-12-22 09:17:10 +09:00
Damien Elmes
d477df8c28 merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00