-1

How do I process wiki markup in a Django template?

I have CharFields with content like ([email:bob@bob.com email], [http://bob.com website])

Timothy Clemans
  • 1,711
  • 3
  • 16
  • 26

1 Answers1

1

You'll need to use something that parses wiki markup. Have a look at the markup module.

It looks pretty straightforward - include django.contrib.markup in the INSTALLED_APPS section of your settings.py then load markup into the template with {% load markup %}. After that you can use the markup tags and filters.

It look like there's lots of other options out there. Try searching 'parse wiki markup' instead of 'process wiki markup'. I came across this SO Question you might find helpful.

Community
  • 1
  • 1
Aidan Ewen
  • 13,049
  • 8
  • 63
  • 88