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

Support Markdown syntax #1843

Closed
felixarntz opened this issue Jul 10, 2017 · 7 comments
Closed

Support Markdown syntax #1843

felixarntz opened this issue Jul 10, 2017 · 7 comments

Comments

@felixarntz
Copy link
Member

felixarntz commented Jul 10, 2017

Issue Overview

At the moment, when writing a very simple post (regular text content only) in Gutenberg, the user is required to use the mouse for things like inserting headings, links, formatting text in bold/italic etc. While Gutenberg is optimized for supporting creation of complex layouts, it should be as easy and streamlined as possible to write a basic post with text content. Only having to use the keyboard would make that much quicker.

Possible Solution

If Gutenberg supported the Markdown specification, that would be possible. The current WordPress editor at least supports a subset of it, but I think Gutenberg should support much more of it. If users could simply write ## My Heading and make that a heading block automatically, it would make the process of writing a post much quicker. Same applies of course for the other things, like formatting text or maybe even adding links.

@schlessera highlighted recently that Dropbox Paper has that kind of support for Markdown, and when I tested it, I loved it. Please try it to get an idea of my suggestion.

@westonruter
Copy link
Member

Support for text patterns is being worked on in #1674. I imagine that could be extended to support headings.

@pento
Copy link
Member

pento commented Jul 11, 2017

Core's textpatterns already support headings, so I assume it will be part of #1674.

-1000 on full Markdown support, that should be a plugin. It's far too niche, and a maintenance nightmare to make sense of the various Markdown parsing libraries.

@ntwb
Copy link
Member

ntwb commented Jul 11, 2017

No WordPress Flavoured Markdown then 🤔

@felixarntz
Copy link
Member Author

@pento Right, I probably went over the top with supporting "the Markdown specification". Headings and links in addition to the current stuff (bold, italic, code...) would be very beneficial though.

I wasn't aware of #1674, I'll leave a comment there too.

@mtias
Copy link
Member

mtias commented Aug 18, 2017

The basic markdown-like patterns are implemented.

@terrylinooo
Copy link

Maybe you can consider the Markdown editor plugin.

@phpbits
Copy link
Contributor

phpbits commented Jun 4, 2019

@felixarntz I've just released markdown support for Gutenberg on EditorsKit( https://wordpress.org/plugins/block-options/ ). It's integrated directly on RichText editor so you don't have to use custom block. Here's the preview on how this feature works :

EditorsKit-new-markdown-preview

Video here : https://twitter.com/phpbits/status/1135895882216329216

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

No branches or pull requests

7 participants