Opened 10 years ago

Closed 10 years ago

#3837 closed (wontfix)

add in markdown system

Reported by: Oleg Okneigres <okneigres@…> Owned by: Adrian Holovaty
Component: Template system Version: master
Severity: Keywords: markup, markdown
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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@…> 10 years ago.
patch for Markdown plugin
escape_markdown.2.py (1.9 KB) - added by Oleg Okneigres <okneigres@…> 10 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)

Changed 10 years ago by Oleg Okneigres <okneigres@…>

Attachment: escape_markdown.py added

patch for Markdown plugin

Changed 10 years ago by Oleg Okneigres <okneigres@…>

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 Changed 10 years ago by Adrian Holovaty

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