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

Conversion support when copy/pasting Markdown into the editor. #1180

Closed
kopepasah opened this issue Jun 15, 2017 · 4 comments
Closed

Conversion support when copy/pasting Markdown into the editor. #1180

kopepasah opened this issue Jun 15, 2017 · 4 comments
Labels
[Feature] Paste [Type] Enhancement A suggestion for improvement. [Type] Task Issues or PRs that have been broken down into an individual action to take

Comments

@kopepasah
Copy link
Member

During last weeks #core-editor Dev chat there was a little discussion about Markdown and even mention of having a Markdown block. In addition, #71 mentions adding keyboard support for some "Markdown-esque shortcuts/syntactic sugar".

However, I believe support for Markdown should go beyond just one block, especially in the case writers copy/pasting Markdown into the editor (no to mention copy/pasting from other editors, like Word).

So, for example, if a writer pastes the following into the editor:

## Super Cool h2

would be cool if the editor converted this to:

<!-- wp:core/heading -->
<h2>Super cool h2.</h2>
<!-- /wp:core/heading -->
@kopepasah
Copy link
Member Author

Also, when typing Markdown into the text portion of the Editor, it is converted from:

## There is something funny.

- Hello there my friend.
- Lots of love.

### Heading 3

to

<!-- wp:core/freeform -->
## There is something funny. - Hello there my friend. - Lots of love. ### Heading 3
<!-- /wp:core/freeform -->

Which causes the Markdown module in Jetpack to output everything as an h2.

@aduth
Copy link
Member

aduth commented Jun 15, 2017

Related: Formatting shortcuts

@jasmussen
Copy link
Contributor

Also related:

@jasmussen jasmussen added [Type] Enhancement A suggestion for improvement. [Type] Task Issues or PRs that have been broken down into an individual action to take [Feature] Paste labels Aug 18, 2017
@mtias
Copy link
Member

mtias commented Aug 18, 2017

This has been mostly implemented. If there are remaining items to handle, let's open individual issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Paste [Type] Enhancement A suggestion for improvement. [Type] Task Issues or PRs that have been broken down into an individual action to take
Projects
None yet
Development

No branches or pull requests

4 participants