Using markdown
-
After *enabling* markdown, creating a new posting only offers visual editing and HTML. Writing markdown as the HTML, doesn’t work. How to actually post with markdown?
The documentation doesn’t even mention it.
The blog I need help with is: (visible only to logged in users)
-
Hey,
Once you’ve enabled Markdown in the settings, you should be able to use it in both the visual editor and the HTML editor. Have a look at this page for some of the MD that is supported:
-
Once you’ve enabled markdown, you should just be able to enter your markdown on either editor tab (Visual or Text).
I just tried it on one of my sites and it’s translating the markdown exactly as I would expect it to.
Note: Using Markdown here isn’t going to be like using a Markdown editing tool where you can either view/type the code or view/edit the contents visually — any Markdown in WordPress will look pretty much the same in either tab, and you won’t see the formatting until you save and view/preview the post. However, the editors will also permit a mix of markdown and HTML so you could create a post that is a mix of Markdown and HTML — in that case, the HTML elements would look different in the Text tab than in the Visual tab, but the Markdown elements would look the same in both tabs as shown in the image below:

-
I notice one difference: your editor has a TEXT tab (whatever), while I see an HTML there. Hm. Will try anyway, thanks.
-
I had to go to WP Admin stuff, then I got a different scheme with black background for the navigation parts. Then I got TEXT in the editor.
Now it works, except that the visual editor doesn’t show the formatting and instead sabotages by removing leading spaces on code lines. Oh well. Maybe the visual editor can be disabled…
Cheers!
-
Sorry, yes, I was using the wp-admin editor. (I did try it out in the new editor and it worked there as well, but then I did my screenshots, etc., using the wp-admin editor.)
And, yes, the visual editor likes to clean things up for you by removing extra spaces. An option would be to use a mix of Markdown and WordPress [code] shortcode tags -- if you use the wp-admin editor (rather than the new editor), the [code] tags will maintain any leading spaces in your code snippets.
-
- The topic ‘Using markdown’ is closed to new replies.