ankitects / ankitects/anki

Formatting don't work anymore when not selecting text

Open
#1,809 3 comments 0 reactions 0 assignees View on GitHub
editor
Dominant language
Rust
Stars
30.5k
Forks
3.2k
Avg merge
2d 8h
Merged PRs (30d)
60

Description

Running on 72c7d64876948c6eaaf9ec21c2397434df949a5d without addon
# Description
## How to reproduce:
1. open note edito
2. press ctrl+z
3. type text
4. delete everything
5. type text again

## Actual behavior
At step 4, italic is showned as being off. At step 5 the text is in italic and italic is shown as turned-on without any request from the user

## Expected behavior:

Either at step 4 "italic" is still turned-on, or at step 5 the text is regular

# Discussion
What's even worse is that it means that there is no way anymore to deactivate italic. You can delete all text, press ctrl+i as many time as you want, new text will always appear in italic, whatever the state of the italic button. The only solution is to write italic text, select it and remove italic

I also encoutered the same issue, where I was not able to type text in italic, but I found no way to consistently reproduce this error

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.