You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] Can you add a feature to automatically convert markdown text content to the corresponding editor format when pasting? #818
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.
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
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.
Activity
[-]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?[/+]Philipinho commentedon Mar 3, 2025
What editor did you copy the markdown from?
core-admin commentedon Mar 3, 2025
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.
Philipinho commentedon Mar 3, 2025
It is processed by the code block extension for this reason.
See: https://github.com/ueberdosis/tiptap/blob/3e59097b34ce8bc8c39e1def67eb31a1d9f9e5c2/packages/extension-code-block/src/code-block.ts#L284-L287
Philipinho commentedon Mar 4, 2025
Perhaps, we could prevent the code block from processing markdown pastes, to allow the Markdown parser handle it.
core-admin commentedon Mar 8, 2025
Yes, in order to achieve the above functions, they must be handled separately within the code block.
fix(client): passkey pre-review fixes (docmost#818)
feat(client): say how long to wait when adding a passkey is rate-limi…