Opened 18 years ago

Closed 18 years ago

#3837 closed (wontfix)

add in markdown system

Reported by: Oleg Okneigres <okneigres@…> 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)

escape_markdown.py (2.1 KB ) - added by Oleg Okneigres <okneigres@…> 18 years ago.
patch for Markdown plugin
escape_markdown.2.py (1.9 KB ) - added by Oleg Okneigres <okneigres@…> 18 years ago.
I'm sorry, previous file was bad. Look this. It also contain an eraser of blockquote lines. It may be useful too.

Download all attachments as: .zip

Change History (3)

by Oleg Okneigres <okneigres@…>, 18 years ago

Attachment: escape_markdown.py added

patch for Markdown plugin

by Oleg Okneigres <okneigres@…>, 18 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 Adrian Holovaty, 18 years ago

Resolution: wontfix
Status: newclosed

This seems too specialized for Django itself, but please consider posting it to djangosnippets.org.

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