Code

Opened 7 years ago

Closed 7 years ago

#3837 closed (wontfix)

add in markdown system

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

patch for Markdown plugin

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

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 7 years ago by adrian

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.