There is a new version (0.5) of mezzanine-pagedown (PyPI) with a few fresh features:
Optional server-side previews in the editor, to have accurate previews that are identical (HTML) to the final page.
The default is client-side previews using pagedown's js previewer.
Convenient support for Python-Markdown extensions, bundled or custom.
Enabling Markdown Extra is as easy as RICHTEXT_FILTER = 'mezzanine_pagedown.filters.extra'.
For custom combinations of extensions:
RICHTEXT_FILTER = 'mezzanine_pagedown.filters.custom'
PAGEDOWN_MARKDOWN_EXTENSIONS = ('extra','toc')
With server-side previews, these extensions are enabled in the editor preview.
Sanitizing the content after rendering the HTML, while respecting mezzanine's RICHTEXT_ALLOWED_* settings.
I would appreciate any feedback and bug reports from users.
6. (Optional): Server-side previews:
In settings.py, enable server-side live previews in the editor:
PAGEDOWN_SERVER_SIDE_PREVIEW = True
By default (False), previews are generated client-side using PageDown's previewer.
In urls.py, enable the preview URL:
import mezzanine_pagedown.urls
Then add the following line to urlpatterns:
("^pagedown/", include(mezzanine_pagedown.urls)),
In this case, the preview URL is /pagedown/preview/. You can replace"^pagedown/" with your own path.
For more options, visit https://groups.google.com/d/optout.--
You received this message because you are subscribed to a topic in the Google Groups "Mezzanine Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mezzanine-users/D5r68ibiEpo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to mezzanine-use...@googlegroups.com.
("^pagedown/", include(mezzanine_pagedown.urls)),