Skip to content

Add markedit-paste-markdown - #59

Closed
lbwork5388 wants to merge 2 commits into
MarkEdit-app:mainfrom
lbwork5388:add-markedit-paste-markdown
Closed

lbwork5388 wants to merge 2 commits into
MarkEdit-app:mainfrom
lbwork5388:add-markedit-paste-markdown

Conversation

@lbwork5388

Copy link
Copy Markdown

Adds markedit-paste-markdown, which converts rich text (HTML) on the clipboard to Markdown on paste.

How it differs from Enhanced Paste:

  • Only converts HTML with real structure. Code copied from editors (VS Code, Cursor) arrives as styled <div>/<span> and is pasted as plain text, with indentation kept.
  • Doesn't convert when the cursor is inside a code block or inline code.
  • GFM tables, strikethrough, and task lists (via turndown-plugin-gfm).
  • &nbsp; becomes a normal space.
  • Light escaping: MY_CONST stays as-is, while text that would turn into Markdown syntax is still escaped.

Checks:

  • The release asset is built by a GitHub Actions workflow from the tagged source, after typecheck and tests.
  • yarn test and yarn build (with integrity check) pass locally.

lbwork5388 and others added 2 commits October 13, 2026 08:17
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@lbwork5388 lbwork5388 changed the title Add markedit paste markdown Add markedit-paste-markdown Oct 13, 2026
@cyanzhong

Copy link
Copy Markdown
Contributor

Thank you for your contribution.

How is this different from https://github.com/MarkEdit-app/MarkEdit-enhanced-paste?

I would suggest improving the existing extension if this one is not hugely different.

@lbwork5388

Copy link
Copy Markdown
Author

Thank you for your contribution.

How is this different from https://github.com/MarkEdit-app/MarkEdit-enhanced-paste?

I would suggest improving the existing extension if this one is not hugely different.

Thanks for the response. I have enhanced paste, which works well. However, when I copy from the Copilot Cursor agent and paste, I only get plain text; the HTML can't be converted to Markdown. So I built this feature to address that.

@cyanzhong

Copy link
Copy Markdown
Contributor

In that case I think we should address the issue you mentioned by improving the existing extension.

These two extension are just too similar, they both use turndown to convert html to markdown.

I will close this one.

@cyanzhong cyanzhong closed this Oct 16, 2026
@lbwork5388

Copy link
Copy Markdown
Author

In that case I think we should address the issue you mentioned by improving the existing extension.

These two extension are just too similar, they both use turndown to convert html to markdown.

I will close this one.

Ok

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants