mukhortov / HESH-WordPress-Plugin

WordPress plugin that adds syntax highlighting to the Post/Page HTML editor
61 stars 17 forks source link

Allow Toggling of Markdown Mode #63

Open DeCentN2Madness opened 6 years ago

DeCentN2Madness commented 6 years ago

I write posts and pages in Markdown rather than HTML, then use a WP conversion plugin to save an HTML version of my content for publication. The ability to toggle CodeMirror Markdown mode and possibly their GitHub Flavored Markdown mode within the HESH settings would help authorship tremendously.

arniebradfo commented 6 years ago

thats interesting... what is the plugin that you use to turn markdown into html?

DeCentN2Madness commented 6 years ago

Right now I'm using the JP Markdown 3.9.6 plugin. It's just the Markdown module from JetPack, which seems to be what most WP Markdown plugins use.

Buzut commented 4 years ago

This is a feature I'd love too. Some plugins store Md in post_content_filtered.

But as I develop themes tailored for a website's needs, I sometimes use Md directly as the main content. The theme handles the conversion.

For that, I just use Parsedown in the theme's templates, passing it directly get_the_content() and ACF field's content when relevant.

No need for anything fancy though, hilighting the most common elements as VSCode does would suffice (at least for my use case).

Capture-d-e-cran-2020-05-20-a-10-13-32.png

foliovision commented 3 years ago

I'm a buyer for this feature as well. We'd be happy to donate to HESH to accelerate support for GFM in the posts/pages editor. Very similar workflow to @Buzut

foliovision commented 2 years ago

We were just discussing how to support Markdown properly with syntax highlighting. Getting the WordPress shortcodes was the most important part. This already gives some kind of highlighting to links (the text part).

There's only a couple more pieces really needed:

Buzut, we'd like to send you a copy of our Parsedown based Markdown editor which is fully compatible with WordPress shortcodes and WordPress plugins to try.

Buzut commented 2 years ago

@foliovision I would be glad to give it a try 🙌