# Anki 2.1.56 Release Candidate

**URL:** <https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001>\
**Category:** Beta Testing\
**Created:** [January 4, 2023, 11:28am UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001 "2023-01-04T11:28:36Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [January 4, 2023, 11:28am UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/1 "2023-01-04T11:28:36Z")

</div>

Hi all,

There are still some UI tweaks in discussion, but they may need to wait until 2.1.57 at this point (likely not far after .56) so that these bug fixes can get out.

If no issues are found, I’d like to release this within a week, so please give it a try and let us know if you run into any issues.

[https://betas.ankiweb.net/anki2.1.56.html#release-candidate-1](https://betas.ankiweb.net/anki2.1.56.html#release-candidate-1)

---

<div class="post-metadata">

**Author:** ![jcznk](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jcznk/32/15215_2.png) [@jcznk](https://forums.ankiweb.net/u/jcznk)\
**Post date:** [January 4, 2023, 12:38pm UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/2 "2023-01-04T12:38:04Z")

</div>

Great to have a new release candidate! Many pesky bugs have been fixed and the new nested cloze feature looks really handy.

(Windows10 qt6) The “bottom bar” buttons seem to have lost their left/right padding

E.g. in the Add window:  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/5/56333939f4a547a6d4ced53e8d6fd567e28d2239.png)

Unsure if related: the text in some buttons is partly cut (e.g. Check Media window)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/a/a0f96435ac799bd998a5cf74b10ff35db0de8a4d.png)

EDIT: also, the .cloze-inactive feature (great addition) may use some refining to better handle nested clozes? This is of course not urgent

---

<div class="post-metadata">

**Author:** ![Freya](https://avatars.discourse-cdn.com/v4/letter/f/a9a28c/32.png) [@Freya](https://forums.ankiweb.net/u/Freya)\
**Post date:** [January 4, 2023, 7:17pm UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/3 "2023-01-04T19:17:38Z")

</div>

Thanks for getting a new release candidate out so quickly!

I just downloaded the new version and did most of my reviews.

The stats screen does seem to load a lot faster, but it seems to be missing data. It only shows the 1 review I did before downloading the beta version.

 ![afbeelding](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/c/c763f2c29927abf30a42d9d1d569a931567dd0de.png)

The cards added stat shows very low numbers, but the graph itself is correct:

 ![afbeelding](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/3/31412221cc9c6d84d71935862aac21e5de811ff4.png)

For example, when I hover over the first bar, it says “1 card”, but the graph shows there are 73. If I click on it, I also see the 73 cards created that day.

The other stats still look okay, I compared them with the AnkiDroid stats to check.

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [January 5, 2023, 12:17am UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/4 "2023-01-05T00:17:39Z")

</div>

@Freya Thanks, I’ve sorted those two issues. If you encounter any more, please let me know.

@jcznk the reduction in button size was actually trying to solve the truncated text issue, so that’s curious - will investigate. Edit: it seems the truncation happens even without any of our custom theme stuff, so it’s a toolkit issue. I experimented with changing the layout of that screen, but showing the buttons vertically isn’t great, as that cuts into the space available for the text.

@TRIAEIOU did you have any thoughts on how that css styling will work with nested clozes?

---

<div class="post-metadata">

**Author:** ![TRIAEIOU](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@TRIAEIOU](https://forums.ankiweb.net/u/TRIAEIOU)\
**Post date:** [January 5, 2023, 9:11am UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/5 "2023-01-05T09:11:10Z")

</div>

> @TRIAEIOU did you have any thoughts on how that css styling will work with nested clozes?

Not anything specific other than as normal CSS and that the “default” CSS will keep the cards looking as they always have (i.e. inactive clozes are not highlighted in any particular way)? To style .inactive-cloze do something like:

```css
.card {
	font-family: arial;
	font-size: 20px;
	text-align: center;
	color: black;
	background-color: white;
}
.cloze {
	font-weight: bold;
	font-style: normal; /* added */
	color: blue;
}
.cloze-inactive { /* added */
	font-weight: normal; /* added */
	font-style: italic; /* added */
	color: black; /* added */
} /* added */
.nightMode .cloze {
	color: lightblue;
}

```

with a card `An {{c1::outer cloze with an {{c2::inner cloze}} inside}} it.` results in:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/a/acf47c9646068aae5df088c586f31c30457ef15a.jpeg)

@jcznk is there anything particular you are thinking of?

---

<div class="post-metadata">

**Author:** ![TRIAEIOU](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@TRIAEIOU](https://forums.ankiweb.net/u/TRIAEIOU)\
**Post date:** [January 5, 2023, 10:12am UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/6 "2023-01-05T10:12:19Z")

</div>

@kleinerpirat you mentioned earlier that you were going to look at an interface for adding editor badges, do you have an idea if/when that will happen? The restructuring of the editor UI in this RC breaks some of the `Markdown input` integration and if the “badge API” is around the corner I will probably wait for that rather than add yet another hacky solution.

Cheers

---

<div class="post-metadata">

**Author:** ![kleinerpirat](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/kleinerpirat/32/19863_2.png) [@kleinerpirat](https://forums.ankiweb.net/u/kleinerpirat)\
**Post date:** [January 5, 2023, 11:53am UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/7 "2023-01-05T11:53:12Z")

</div>

It won’t happen in 2.1.56, but a few weeks ago I created a somewhat working prototype for the API. There’s a realistic chance it will make it into 2.1.57 - I should have more time again from next week onward.

---

<div class="post-metadata">

**Author:** ![TRIAEIOU](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@TRIAEIOU](https://forums.ankiweb.net/u/TRIAEIOU)\
**Post date:** [January 5, 2023, 12:08pm UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/8 "2023-01-05T12:08:46Z")

</div>

Ok, thanks! As a side note, I am of course not trying to pressure/demanding anything, just curious of the time line. I am well aware, and very appreciative, of the fact that most of us are doing this in our spare time for free!

---

<div class="post-metadata">

**Author:** ![jcznk](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jcznk/32/15215_2.png) [@jcznk](https://forums.ankiweb.net/u/jcznk)\
**Post date:** [January 6, 2023, 12:44am UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/9 "2023-01-06T00:44:43Z")

</div>

I didn’t have anything too specific in mind, I just noticed that the active cloze, if nested inside another cloze, would have both the `.cloze` and `.cloze-inactive` classes, and that seemed to complicate things a bit on the user side.

E.g. I was thinking of some simple note of the like:

```auto
Question 1: {{c4::{{c1::Answer1}}}}
Question 2: {{c4::{{c2::Answer2}}}}
Question 3: {{c4::{{c3::Answer3}}}}

```

CSS:

```auto
.cloze-inactive {opacity: 0;}
.cloze-inactive:hover {opacity: 1;}

```

But this of course would result in the active cloze to be hidden as well.

Actually, this particular use case, and probably many others, can be addressed by employing the newly added `data-ordinal` attribute, which I did not realize was a thing until recently. Nice!

---

<div class="post-metadata">

**Author:** ![TRIAEIOU](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@TRIAEIOU](https://forums.ankiweb.net/u/TRIAEIOU)\
**Post date:** [January 6, 2023, 2:36am UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/10 "2023-01-06T02:36:11Z")

</div>

> [@jcznk](#):
>
> ```auto
> .cloze-inactive {opacity: 0;}
> .cloze-inactive:hover {opacity: 1;}
> 
> ```

Yeah, there are some things, like `opacity` and `display`, that can’t be overridden in a descendant and I know of no CSS way of mimicking `:has()` so for those cases I think a little JS will be easiest, something like:

```javascript
for (const el of document.querySelectorAll('.cloze-inactive')) {
    if (!el.querySelector('.cloze')) el.classList.add('hidden') // or whatever
}

```

Couldn’t your opacity case be worked around with something like this though?

```css
.cloze {
	font-weight: bold;
	font-style: normal;
	color: blue;
}
.cloze-inactive {color: var(--canvas-elevated);}
.cloze-inactive:hover {color: var(--fg);}

```

My personal use case is to allow easy clozing of lecture notes like this (so it will need something like the above JS, or rather, my `Flexible cloze` will do something like the above):

Anemia - types: {{c1::

- Microcytic - MCV \< 100 {{c2::

- Normocytic - MCV 100 - 120 {{c3::

- Macrocytic MCV \> 120 {{c4::

}}

---

<div class="post-metadata">

**Author:** ![ferophila](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ferophila/32/10566_2.png) [@ferophila](https://forums.ankiweb.net/u/ferophila)\
**Post date:** [January 7, 2023, 8:29pm UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/11 "2023-01-07T20:29:07Z")

</div>

As in the last betas of 2.1.55, it takes up to two seconds for the note details to appear when switching to the browser view (macOS, Intel version, Qt5).

---

<div class="post-metadata">

**Author:** ![ferophila](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/ferophila/32/10566_2.png) [@ferophila](https://forums.ankiweb.net/u/ferophila)\
**Post date:** [January 8, 2023, 12:59pm UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/12 "2023-01-08T12:59:20Z")

</div>

Some other minor issues (haven’t checked if they are new):

- The labelling of the “Import” button is very squeezed in the German-language localisation (import dialogue).
- The options in the drop-down menus in the import dialogue are not accessible via the keyboard (by pressing the first letter of the respective menu item).

---

<div class="post-metadata">

**Author:** ![jcznk](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jcznk/32/15215_2.png) [@jcznk](https://forums.ankiweb.net/u/jcznk)\
**Post date:** [January 8, 2023, 10:40pm UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/13 "2023-01-08T22:40:11Z")

</div>

Thank you very much! Both solutions work great

---

<div class="post-metadata">

**Author:** ![jcznk](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/jcznk/32/15215_2.png) [@jcznk](https://forums.ankiweb.net/u/jcznk)\
**Post date:** [January 8, 2023, 10:48pm UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/14 "2023-01-08T22:48:04Z")

</div>

Windows 10 qt6, no add-ons

1. This problem arised somewhere along the 2.1.55 beta phase, steps to reproduce:

- open a card with an input element (e.g. {{type:Text}}) and put the cursor inside it
- zoom enough for the scrollbar to appear
- unfocus the input field (e.g. click outside of it, or flip the card)  
 → Anki will auto scroll to the bottom of the card

1. `-introduced:x` seems bugged. It does not detect manually rescheduled cards, yet to be reviewed for the first time, which were new before using Set Due Date.  
E.g.  
If I search `resched:10`, I get 484 results.  
`resched:10 introduced:10` gives 168 results.  
`resched:10 -introduced:10`: only 10 (the ones that were not new at the time of the reschedule)

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [January 9, 2023, 1:36am UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/15 "2023-01-09T01:36:18Z")

</div>

2.1.56 was released as stable today. Changes since rc1:

- Add more left/right margin to buttons on Windows.
- Fix cloze buttons being disabled in MathJax editor.
- Fix some missing info in stats screen.
- Don’t display a ‘timestamps in the future’ message after a bulk import.

If you experience any issues with the stable release, please report them on a new thread.

> [@jcznk](#):
>
> `-introduced:x` seems bugged.

@Rumo could we be missing outer parens on this query?

---

<div class="post-metadata">

**Author:** ![Rumo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/rumo/32/1505_2.png) [@Rumo](https://forums.ankiweb.net/u/Rumo)\
**Post date:** [January 9, 2023, 4:45pm UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/17 "2023-01-09T16:45:10Z")

</div>

> [@dae](#):
>
> @Rumo could we be missing outer parens on this query?

Not only that, as it turns out!

> <https://github.com/ankitects/anki/pull/2306>
>
> https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/14

---

<div class="post-metadata">

**Author:** ![Freya](https://avatars.discourse-cdn.com/v4/letter/f/a9a28c/32.png) [@Freya](https://forums.ankiweb.net/u/Freya)\
**Post date:** [January 9, 2023, 6:09pm UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/18 "2023-01-09T18:09:24Z")

</div>

Thanks for the new release!

Most issues with the stats seem to be fixed now for me. One issue I’m still having is the numbers displayed below the “Added” graph being too low. But the numbers when hovering over the bars are correct now!

 ![afbeelding](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/b/ba1fad0c26c0aa0f55e710fd863f44311fcafdd1.png)

---

<div class="post-metadata">

**Author:** ![pinnerup](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/pinnerup/32/52_2.png) [@pinnerup](https://forums.ankiweb.net/u/pinnerup)\
**Post date:** [January 9, 2023, 9:18pm UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/19 "2023-01-09T21:18:45Z")

</div>

Sorry, this is a very minor error pertaining to the 2.1.55 build, but that thread is closed and I can’t seem to find if anyone has reported this somewhere else (in that case, please disregard), and for good reasons I cannot test if it persists in 2.1.56.

Now that 2.1.56 has gone out, I got to experience the new feature where Anki notifies me when a new release is put out. But the notification box (at least on my computer, Ubuntu 22.04) is too small to hold the text on one of the buttons:

[[Album] imgur.com ![](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/e/ede975cd1e3b8a9602f8acb270270804965e9e28.jpeg "imgur.com") ](https://imgur.com/a/QhClgh7)

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [January 9, 2023, 11:45pm UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/20 "2023-01-09T23:45:07Z")

</div>

@Freya dang. Thanks, fixed.

@pinnerup that’s one of the issues .56 should (mostly) address.

---

<div class="post-metadata">

**Author:** ![medjoe](https://avatars.discourse-cdn.com/v4/letter/m/a9a28c/32.png) [@medjoe](https://forums.ankiweb.net/u/medjoe)\
**Post date:** [January 10, 2023, 2:52am UTC](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001/21 "2023-01-10T02:52:19Z")

</div>

working well on Mac Qt6 , thank you for fixing the Highlight feature so quickly!

[Next page](https://forums.ankiweb.net/t/anki-2-1-56-release-candidate/26001.md?page=2)
