Markdown section type for GPEasy CMS
GPEasy is a fun little CMS, somehow I thought it would benefit from having a MarkDown content type - and for once in this life, I finally found something nobody has done yet and within my boundaries, so here it is. Enjoy everybody!
- Default content
- Section add/remove (Well, Ok, most of this is done by the CMS itself...)
- Displaying Markdown content (The heavy lifting is done by Parsedown)
- Displaying Markdown Extra content (The heavy lifting is done by Parsedown Extra)
- Inline content editing -- Woohooo! (Ok, I copied most of the JavaScript work from the "Execute PHP" plugin available in the GPEasy repo...)
- Downloadable from the GPEasy plugin repository: EasyMark: MarkDown for GPEasy
- WYSIWYG-like operation: not completely WYSIWYG, and not instantaneous, but this is a lot more convenient to use than without...
- Settings for the Parsedown renderer
- add some kind of link to help or cheatsheet regarding Markdown to the inline editing part
- would be nice to have a more user-friendly editor, something like Bootstrap-Markdown
- Jürgen Krausz spotted and fixed a bug: was not compatible with PHP 5.3. Also, made JavaScript a bit nicer
- Added "Acknowledgements" section to admin page to thank everyone involved
- Merged fix for JS to be able to work in cases when framework is installed under subfolder (thanks oyejorge!)
- Admin page with a lot of (OK, actually 5) configurable options!
- Fix double escaping in code blocks (actually done so by adding the admin page options)
- WYSIWYG stuff works with POST requests instead of GET
- Updated Parsedown to 1.6
- Removed Special Link - now WYSIWYG implemented in Admin part, a bit less clutter
- Some PHP and JS refactor to have nicer code
- Markdown Extra
- Minor bugfix: variable not found error fixed
- WYSIWYG-like operation! Yay! Not the nicest (currently uses HTTP GET requests to a special page...), but at least works most of the time. Would be nicer with posts, but having to get a nonce does not make that too easy...
- Markdown parsing, inline editing works, as well as Section add and remove
The project uses Parsedown for transforming Markdown into HTML, and Parsedown Extra for transforming Markdown Extra into HTML.