WordPress.org

Ready to get started?Download WordPress

Forums

Markdown on Save
[resolved] the Visual tab destroys any leading whitespace (3 posts)

  1. multinc
    Member
    Posted 3 years ago #

    If you edit an existing post and your saved TAB default is "Visual" and not "HTML", then WordPress will destroy all the leading whitespaces of each line, which will mess up the code blocks of Markdown.

    The workaround is to click on Visual and then reload the page in order to re-edit the post with the HTML tab set as default.

    http://wordpress.org/extend/plugins/markdown-on-save/

  2. multinc
    Member
    Posted 3 years ago #

    It would be great if the plugin did the following:
    - disabled the Visual tab in the "Edit Post" page if the post is set to Markdown; if this isn't possible, then at least give a popup warning if the user clicks on the Visual tab.
    - when entering the "Edit Post" page of an existing Markdown page, the tab is automatically switched to the HTML tab *before* WordPress does any bad conversions

  3. Mark Jaquith
    WordPress Lead Dev
    Plugin Author

    Posted 2 years ago #

    Sorry it took me so long to find this post! I just published version 1.1.3 which disables the Visual editor when the post is in Markdown mode. Good call.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic