Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I switch between markdown and wysiwyg multiple times, there is a problem getting the final markdown result #3295

Open
NameNull opened this issue Feb 18, 2025 · 0 comments
Labels

Comments

@NameNull
Copy link

Describe the bug

bug1: The preview effect is incorrect when a blockquote is followed by an unordered title;
bug2: Based on the text of ‘* > 123’, the text after getMarkdown is rendered again and display abnormalities and getMarkdown abnormalities occur again.

To Reproduce

Steps to reproduce the behavior:
I used the wysiwyg example. the produce is:

  1. Input ‘* > 123’ (Figure 0);
  2. Click the wysiwyg button. At this time, problem 1 occurs: a meaningless p tag is added between the blockquote and the unordered title (Figure 1);
  3. Click the return markdown button, and the mardown has more line breaks and spaces (Figure 2);
  4. Click the wysiwyg button, and it turns into blockcode (Figure 3).
  5. Click the markdown button (Figure 4)

Expected behavior

When I don't change the text content and only switch the wysiwyg and markdown buttons, the final markdown text obtained should be consistent with the previewed HTML.

Screenshots

Figure 0:
Image

Figure 1:
Image

Figure 2:
Image

Figure 3:
Image

Figure 4:
Image

Desktop (please complete the following information):

  • OS: window11
  • Browser chrome

Additional context

In addition, there are some small wysisyg issues: For example:

  1. When the cursor is clicked on the text of the unordered title, and then clicked on H1, it cannot be changed to the H1 style; but it can be changed in markdown mode;
  2. In the unordered title, the first item li cannot be indented, but the indent icon does not turn gray, causing users to think that it can be clicked, but the click is unresponsive. It can be indented in markdown mode.
@NameNull NameNull added the Bug label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant