Skip to content

[Feature Request] Can you add a feature to automatically convert markdown text content to the corresponding editor format when pasting? #818

Closed

Description

@core-admin

When I copy a text segment from a markdown file and paste it into an editor, the editor will recognize the pasted content as markdown-formatted code block, which is not very ideal.

In most cases, users may want to convert markdown-formatted text into a format that the editor can render.

For example, rendering the title pasted in as the editor's corresponding h1 level heading. I think this aligns with the operational habits of most people and facilitates content migration.

So I would like to ask the author's opinion. Personally, I think this feature is very convenient.

When users paste text into the editor, if the editor detects that the current content conforms to the markdown format standard, it can provide a message confirmation, prompting the user "Detected that the pasted content conforms to Markdown syntax. Do you need to make a style conversion?" allowing the user to make a choice.

Image

Activity

  1. changed the title [-]Can you add a feature to automatically convert markdown text content to the corresponding editor format when pasting?[/-] [+][Feature Request] Can you add a feature to automatically convert markdown text content to the corresponding editor format when pasting?[/+] on Mar 2, 2025
  2. Philipinho commented on Mar 3, 2025

    @Philipinho
    Member

    What editor did you copy the markdown from?

  3. core-admin commented on Mar 3, 2025

    @core-admin
    Author

    The text copied from VSCode, I guess it might be that when copying Markdown, VSCode attaches additional metadata or formatting to the clipboard, causing the editor to recognize it as code format.

  4. Philipinho commented on Mar 4, 2025

    @Philipinho
    Member

    Perhaps, we could prevent the code block from processing markdown pastes, to allow the Markdown parser handle it.

  5. core-admin commented on Mar 8, 2025

    @core-admin
    Author

    Perhaps, we could prevent the code block from processing markdown pastes, to allow the Markdown parser handle it.

    Yes, in order to achieve the above functions, they must be handled separately within the code block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions