Using Markdown in Flatbase
This support request was posted in Flatbase by jonknight
- jonknight April 25, 2017 at 8:51 pm
Hi there,
I’m currently setting up a knowledge base for a new startup, vAtomic. We have a lot of our documentation in Markdown format. I have Markup enabled in our dev instance of WordPress 4.7.4 (via the official Jetpack Markdown plugin) and it works fine within Posts and Pages.
However, Markdown doesn’t seem to be interpreted in the Articles content editor which Flatbase uses, which is causing me a headache!
I’m hoping that it’s possible for this functionality to be enabled with code changes, but I don’t know how to do this. Please help!
Thanks,
Jon
P.S. I saw this article which might be useful… https://github.com/Freemius/wp-markdown-editor/commit/706bce0c23943c82d102c67a09e18dac32c66207
Juanfra Aldasoro April 25, 2017 at 9:08 pmHi Jon,
Thank you for writing. I hope you are doing well.
Your site is looking great, congratulations! I wish you all the best for your new venture 🙂
Yes, I can see that jetpack by default includes support markdown format for posts and pages only. I could find in their documentation, a snippet that will give you the chance to include markdown format for the custom post type used by the theme (article). You can find their documentation here: https://jetpack.com/support/markdown/ (check the section titled “Add Markdown support to your Custom Post Types”).
I’ve created a snippet for you to include in your theme functions.php file in case you need some assistance. You can find it here: https://gist.github.com/juanfra/35d013701871ee349781ecb190087ccd
Best,
Juan.jonknight April 25, 2017 at 9:15 pmThanks Juan, that’s awesome.
One other question if I may. I use Blogo and MarsEdit for creating content in WordPress, but they only list the two “standard” wordpress content types of Post and Pages. Are you aware if it’s possible to edit articles via WordPress xmlrpc.php?
Thanks!
Jon
Juanfra Aldasoro April 25, 2017 at 9:23 pmHi Jon,
Thank you for the follow-up 🙂
Unfortunately, I’m not familiar with those editors. Perhaps you can ask their developers/support technicians if it’s possible to edit/create custom post types? If their answer is “Yes”, then you will have to do what they say to include support for the custom post type “article“.
Best,
Juan.
You must be logged in to reply to this topic.