Skip to content

Add markedit-paste-markdown - #59

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

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.

This branch has not been deployed

No deployments
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