Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

front of card with text out header broken in latest version of anki #42

Closed
tricktux opened this issue May 24, 2024 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@tricktux
Copy link

Let me start by saying that I love this plugin

Been using it for years!

But in the more recent versions of Anki:
image

This type of card is broken:

## What's the difference between `read` and `recv`?

Enter any text here

<!-- meta pkg split -->

- The argument `flags`
- `recv` with `flags = 0` is basically a `read`

![1](attachements/2024-05-24-16-31-03.png)

Without the non header text the front and back of the anki card good. With it the front and back get mixed, and the back is kind of broken.

Software version:
image

@Steve2955
Copy link
Owner

Thanks for the appreciation of my work. To be honest I haven't used it much myself lately, but I still gave it a quick look:

I installed the latest version of Anki (Version ⁨24.04.1 (ccd9ca1a)⁩ Python 3.9.18 Qt 6.6.2 PyQt 6.6.1) and converted a slightly adjusted version of your example to an Anki deck which I imported right after:

## What's the difference between `read` and `recv`?

Enter any text here

<!-- meta pkg split -->

- The argument `flags` xxxx
- `recv` with `flags = 0` is basically a `read`
md2apkg -i TEST.md -n GH-TEST

After importing, the card looks like this:

image

This is excatly how I would expect it to look like. The html comment (<!-- meta pkg split -->) is ignored as it is not the expected format of <!-- md2apkg split -->. (see README)

If you use this syntax:

## What's the difference between `read` and `recv`?

Enter any text here

<!-- md2apkg split -->

- The argument `flags` xxxx
- `recv` with `flags = 0` is basically a `read`

The card get's also split into front and back as expected:

image

Is it possible, that you just switched up the html comment? If not, could you please provide a further example that helps me to reproduce the issue?

@Steve2955 Steve2955 added the bug Something isn't working label May 24, 2024
@tricktux
Copy link
Author

Ohhhh waoooo

Where did I get that split tag? That's really crazy. I guess I messed up a while back and it was just working, until more recently that I tried more text in the front.

Nothing to see here :)

Thank you much for the quick response!!

@Steve2955
Copy link
Owner

Alright, that was an easy fix 😄

No worries and thank you very much again for the appreciation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants