[GH-ISSUE #5032] [Bug] Import markdown, the URL with username and password in the code block is abnormally converted #2240

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

Originally created by @smartyhero on GitHub (Apr 2, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5032

Bug Description

When I import the following file and then export it, the content of the file changes

import.md

export.md
``

How to Reproduce

When I imported the following file and then exported it, the content of the file changed. import.md was the file I imported. I exported it again without performing any operations, and the content of the exported file changed.

Expected Behavior

Exported files will not be abnormally converted

Operating System

mac

AppFlowy Version(s)

0.5.2

Screenshots

No response

Additional Context

No response

Originally created by @smartyhero on GitHub (Apr 2, 2024). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5032 ### Bug Description When I import the following file and then export it, the content of the file changes [import.md](https://github.com/AppFlowy-IO/AppFlowy/files/14830811/import.md) [export.md](https://github.com/AppFlowy-IO/AppFlowy/files/14830812/export.md) `` ### How to Reproduce When I imported the following file and then exported it, the content of the file changed. import.md was the file I imported. I exported it again without performing any operations, and the content of the exported file changed. ### Expected Behavior Exported files will not be abnormally converted ### Operating System mac ### AppFlowy Version(s) 0.5.2 ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@apomalyn commented on GitHub (Apr 6, 2024):

Was able to reproduce it on v0.5.3. You don't need to import the file.

Step to reproduce:

  1. Add a code block of Auto or Bash (maybe other works but I only tested those two)
  2. In the code block, add any text that ressemble a email address. E.g.: test@test.com
  3. Export as markdown (Share > Markdown)
<!-- gh-comment-id:2041214456 --> @apomalyn commented on GitHub (Apr 6, 2024): Was able to reproduce it on v0.5.3. You don't need to import the file. Step to reproduce: 1. Add a code block of Auto or Bash (maybe other works but I only tested those two) 2. In the code block, add any text that ressemble a email address. E.g.: `test@test.com` 3. Export as markdown (Share > Markdown)
Author
Owner

@apomalyn commented on GitHub (Apr 11, 2024):

I think the editor is also concerned because, with Auto, email-like string are coloured even when part of an URL.

Screenshot 2024-04-10 at 11 05 13 PM
<!-- gh-comment-id:2048852371 --> @apomalyn commented on GitHub (Apr 11, 2024): I think the editor is also concerned because, with Auto, email-like string are coloured even when part of an URL. <img width="354" alt="Screenshot 2024-04-10 at 11 05 13 PM" src="https://github.com/AppFlowy-IO/AppFlowy/assets/22211097/872f0374-7d9c-46cb-b0a2-86d5be372524">
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#2240
No description provided.