Opened 19 years ago
Closed 19 years ago
#3837 closed (wontfix)
add in markdown system
| Reported by: | Owned by: | Adrian Holovaty | |
|---|---|---|---|
| Component: | Template system | Version: | dev |
| Severity: | Keywords: | markup, markdown | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
(sorry for my English, I don't sure that I'm writing correctly. I'm from Russia)
This plugin escapes tags and html-entities in Markdown string. It use templatetags. I think it may be attaching in markup plugin.
Usage (in template):
{% load markup %)
{% load escape_markdown %}
....<div id="markdown_sting">{% data|escape_markdown|markdown %}</div>....
I will thanks you if you give me a feedback on my suggestion. There is a code in attach.
Attachments (2)
Change History (3)
by , 19 years ago
| Attachment: | escape_markdown.py added |
|---|
by , 19 years ago
| Attachment: | escape_markdown.2.py added |
|---|
I'm sorry, previous file was bad. Look this. It also contain an eraser of blockquote lines. It may be useful too.
comment:1 by , 19 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
This seems too specialized for Django itself, but please consider posting it to djangosnippets.org.
patch for Markdown plugin