Markup Filters

The following collection of template filters implements common markup languages:

  • textile: Implements Textile
  • markdown: Implements Markdown
  • restructuredtext: Implements ReStructured Text

In each case, the filter expects formatted markup as a string and returns a string representing the marked-up text. For example, the textile filter converts text that is marked up in Textile format to HTML:

{% load markup %}{{ object.content|textile }}

To activate these filters, add ‘django.contrib.markup’ to your INSTALLED_APPS setting. Once you’ve done that, use {% load markup %} in a template, and you’ll have access to these filters.

Back to Tutorial

Humanizing Data
Using Log4j

Get industry recognized certification – Contact us

keyboard_arrow_up
Open chat
Need help?
Hello 👋
Can we help you?