Django WYSIWYG markdown editor that supports GFM
MIT License
Django WYSIWYG markdown editor that supports GFM
This is a django app that adds a markdown widget utilizing the TOAST UI Editor. Among other things it also adds a MarkdownField
type that is an extension of the TextField
but will use a WYSIWYG Markdown editor in the admin interface. The editor allows editing the markdown source code with a preview on the side.
The module adds 3 widgets based on django's own widget API:
The rendering supports both a fancy viewer and editor in script-enabled environments but allows falling back to statically rendered elements if scripts are not supported or disabled. For static rendering of the viewer the python bindings for Github's GFM Markdown implementation cmark-gmf are used while the editor falls back to a simple text area input.