Skip to content

Markdown for deck descriptions is incomplete #19322

@ZornHadNoChoice

Description

@ZornHadNoChoice

Checked for duplicates?

  • This issue is not a duplicate

Does it also happen in the desktop version?

  • This bug does not occur in the latest version of Anki Desktop

What are the steps to reproduce this bug?

Currently the markdown support in deck descriptions is quite limited. It's a bit better on Anki Desktop though. For example, if you copy the following into a deck's description...

# H1
## H2
### H3
*italic* **bold** ~~strike~~ --strike-- ==highlighted== >!spoiler!< sup^4 sub_3 H~2~O

[click me](https://docs.ankiweb.net/troubleshooting.html)
![hello world](https://upload.wikimedia.org/wikipedia/commons/thumb/8/8f/Whole_world_-_land_and_oceans_12000.jpg/1200px-Whole_world_-_land_and_oceans_12000.jpg)
<img src='https://upload.wikimedia.org/wikipedia/commons/thumb/8/8f/Whole_world_-_land_and_oceans_12000.jpg/1200px-Whole_world_-_land_and_oceans_12000.jpg' width=100>

---

1. one
2. two
3. three
    - a
    - b

- [x] done
- [ ] not done

` ` `py
for i in range(10):
    print(i)
` ` `

Inline `code` :joy:

> Hello World!

| Card | Type |
| --- | --- |
| one | two |
| three | four |

\(\sum_{-\infty}^{\infty}\)
$\sum_{-\infty}^{\infty}$

(Remove the spaces between backticks. Also, I know that some of these syntaxes are nonstandard, but I just included them anyway)

...then you get this on Anki Desktop

Image

while you get this on AnkiDroid

Image

Expected behaviour

It should look like Anki Desktop, except for the image support which was supposedly added in #18748.

Somewhat related to #6669.

Debug info

AnkiDroid Version = 2.23.0alpha4 (fb3fadbdebac9b191096a739e730d47ad9f6db09)  
Backend Version = 0.1.61-anki25.09 (25.09 539054c34dccf8b89ca7ea9c9c40ecaf172de759)  
Android Version = 13 (SDK 33)  
ProductFlavor = full  
Device Info = Xiaomi | POCO | mondrian | mondrian_global | 23013PC75G | qcom  
Webview User Agent = Mozilla/5.0 (Linux; Android 13; 23013PC75G Build/TKQ1.220905.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/140.0.7339.208 Mobile Safari/537.36  
ACRA UUID = b9d03d9a-5af9-4e67-987e-cc15799171e2  
FSRS = 5.1.0 (Enabled: true)  
Crash Reports Enabled = true

(Optional) Anything else you want to share?

I thought about making a suggestion for Anki Desktop to improve its markdown support for deck descriptions, but I figured it wouldn't be accepted.

Research

  • I have checked the manual and the FAQ and could not find a solution to my issue
  • (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions