#23743: Add markup support to flatpages
-----------------------------------+--------------------
Reporter: berkerpeksag | Owner: nobody
Type: New feature | Status: new
Component: contrib.flatpages | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------
It would be good if flatpages supports reST and markdown markups in
addition to raw HTML.
The default behavior can be same as now. The user can choose either reST
or markdown (of course the related packages should be installed) when they
creating a page from the admin site(or via the Python API).
Proposed API changes:
- Add `markup_type` (None, 'reST', 'markdown') and `rendered_content`
fields to the `FlatPage` model.
- Add a `get_content` method(or an attribute) to the `FlatPage` model: If
`markup_type` is `None`, it will be use the `content` attribute.
Otherwise, `rendered_content` will be used.
--
Ticket URL: <https://code.djangoproject.com/ticket/23743>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/055.34fb1d16daccb807c1bb34f21404327c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.