Opened 14 years ago

Closed 14 years ago

#11708 closed (duplicate)

django.contrib.markup: pass docutils Writer as argument to restructuredtext template filter

Reported by: Chris.Wesseling@… Owned by: nobody
Component: Contrib apps Version: dev
Severity: Keywords: rst markup Writer template filter
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Adds optional passing of a custom writer_name to restructuredtext template filter. Defaults to the standard html4css1 Writer from docutils.writers.


{{ value|restructuredtext }}

will give you standard html output and

{{ value|restructuredtext:"custom" }}

will user the Writer class from the custom module.

See the docutils documentation for more info.

Attachments (1)

rst.patch (1.2 KB) - added by Chris.Wesseling@… 14 years ago.

Download all attachments as: .zip

Change History (2)

Changed 14 years ago by Chris.Wesseling@…

Attachment: rst.patch added

comment:1 Changed 14 years ago by dc

Resolution: duplicate
Status: newclosed

Duplicate of #11342

Note: See TracTickets for help on using tickets.
Back to Top