AppFlowy icon indicating copy to clipboard operation
AppFlowy copied to clipboard

[Bug] Import markdown, the URL with username and password in the code block is abnormally converted

Open smartyhero opened this issue 1 year ago • 2 comments

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

smartyhero avatar Apr 02 '24 02:04 smartyhero

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.: [email protected]
  3. Export as markdown (Share > Markdown)

apomalyn avatar Apr 06 '24 21:04 apomalyn

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

apomalyn avatar Apr 11 '24 03:04 apomalyn