[GH-ISSUE #4959] [Bug] Input underscore exception #2207

Closed
opened 2026-03-23 21:20:36 +00:00 by mirror · 2 comments
Owner

Originally created by @smartyhero on GitHub (Mar 21, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4959

Originally assigned to: @Xazin on GitHub.

Bug Description

After entering the underline for the second time in a document, the underline entered for the first time will be deleted. After repeated attempts, I can't even enter anything in any document in appflowy.

I think this is a very serious bug. As a software that records information, after I typed an underscore, I couldn’t type the content anymore, which I couldn’t understand. However, I still thank appflowy for their hard work.

How to Reproduce

https://github.com/AppFlowy-IO/AppFlowy/assets/76774978/766dedc3-93b6-4af6-86ab-3eb20c3f338e

  1. Create a new document
  2. Enter abc_def to test ghi_ (at this time, the underscore after abc and the last underscore will be deleted)
  3. Enter jkl
  4. Position the cursor after abc and enter an underline
  5. Position the cursor behind ghi and enter the underline (at this time, the underline after abc will also be deleted)
  6. Enter the underline after ghi again (the underline entered this time can be displayed normally)
  7. Position the cursor behind abc again and enter an underscore (at this time the cursor will automatically jump to behind ghi)
  8. Content cannot be entered on any page of Appflowy. Even if the newly created document is deleted, content cannot be entered. Appflowy must be restarted before it can be used normally.

My English is not very good, so all the text is generated using Google Translate, I apologize for that.

Expected Behavior

I can type the underscore normally

In addition, when using appflowy to record content, I occasionally encounter various abnormal and expected feedback.
I like this software very much, but these little problems are really annoying

Operating System

mac

AppFlowy Version(s)

0.5.2

Screenshots

No response

Additional Context

No response

Originally created by @smartyhero on GitHub (Mar 21, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/4959 Originally assigned to: @Xazin on GitHub. ### Bug Description After entering the underline for the second time in a document, the underline entered for the first time will be deleted. After repeated attempts, I can't even enter anything in any document in appflowy. I think this is a very serious bug. As a software that records information, after I typed an underscore, I couldn’t type the content anymore, which I couldn’t understand. However, I still thank appflowy for their hard work. ### How to Reproduce https://github.com/AppFlowy-IO/AppFlowy/assets/76774978/766dedc3-93b6-4af6-86ab-3eb20c3f338e 1. Create a new document 2. Enter abc_def to test ghi_ (at this time, the underscore after abc and the last underscore will be deleted) 3. Enter jkl 4. Position the cursor after abc and enter an underline 5. Position the cursor behind ghi and enter the underline (at this time, the underline after abc will also be deleted) 6. Enter the underline after ghi again (the underline entered this time can be displayed normally) 7. Position the cursor behind abc again and enter an underscore (at this time the cursor will automatically jump to behind ghi) 8. Content cannot be entered on any page of Appflowy. Even if the newly created document is deleted, content cannot be entered. Appflowy must be restarted before it can be used normally. My English is not very good, so all the text is generated using Google Translate, I apologize for that. ### Expected Behavior I can type the underscore normally In addition, when using appflowy to record content, I occasionally encounter various abnormal and expected feedback. I like this software very much, but these little problems are really annoying ### Operating System mac ### AppFlowy Version(s) 0.5.2 ### Screenshots _No response_ ### Additional Context _No response_
mirror 2026-03-23 21:20:36 +00:00
Author
Owner

@ghost commented on GitHub (Apr 1, 2024):

Got the same problem on 0.5.3: actually, since AppFlowy uses markdown, when you type a second _ the text between is formatted in italic. I think the rule for markdown is to format in italic when the first _ is at the beginning of a word and the second at the end of a next one.

It also happens in code sample which should not: code sample is supposed to not be formatted in addition to code format.

Example:

`created_at` and updated_at`

should produce: created_at and updated_at
and

use `_underscores_` to _italicize_ the text

should produce : use _underscores_ to italicize the text

<!-- gh-comment-id:2029554163 --> @ghost commented on GitHub (Apr 1, 2024): Got the same problem on 0.5.3: actually, since AppFlowy uses markdown, when you type a second _ the text between is formatted in italic. I think the rule for markdown is to format in italic when the first _ is at the beginning of a word and the second at the end of a next one. It also happens in `code sample` which should not: code sample is supposed to not be formatted in addition to code format. Example: ``` `created_at` and updated_at` ``` should produce: `created_at` and `updated_at` and ``` use `_underscores_` to _italicize_ the text ``` should produce : use `_underscores_` to _italicize_ the text
Author
Owner

@annieappflowy commented on GitHub (Jul 2, 2024):

We now support escaping markdown by cmd / ctrl + z

https://github.com/AppFlowy-IO/AppFlowy/assets/12026239/727a24a6-332c-4558-b4f1-b33721cb8711

<!-- gh-comment-id:2203042017 --> @annieappflowy commented on GitHub (Jul 2, 2024): We now support escaping markdown by cmd / ctrl + z https://github.com/AppFlowy-IO/AppFlowy/assets/12026239/727a24a6-332c-4558-b4f1-b33721cb8711
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#2207
No description provided.