Opened 15 years ago

Closed 15 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

Description

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

So

{{ 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@… 15 years ago.

Download all attachments as: .zip

Change History (2)

by Chris.Wesseling@…, 15 years ago

Attachment: rst.patch added

comment:1 by dc, 15 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #11342

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