Opened 17 years ago

Closed 15 years ago

#7010 closed (wontfix)

Add MediaWiki style wikimarkup to django.contrib.markup

Reported by: Joshua "jag" Ginsberg <jag@…> Owned by: nobody
Component: Contrib apps Version: dev
Severity: Keywords: markup
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

>>> from django.contrib.markup.templatetags import markup
>>> s = u"""=WikiMarkup=
... 
... A popular markup format is the one used by MediaWiki. It's particularly easy for non-technical users to use.
... 
... * It supports '''bold''', ''italic'' text easily. 
... ** Oh yeah. Lists too. 
... * Its code can be downloaded from [http://code.google.com/p/wikimarkup/] 
... 
... This patch adds MediaWiki-style wiki markup to Django.
... """
>>> markup.wikimarkup(s)
u'<h1 id="w_wikimarkup">WikiMarkup</h1>\n<p>A popular markup format is the one used by MediaWiki. It\'s particularly easy for non-technical users to use.\n</p>\n<ul><li> It supports <b>bold</b> and <i>italic</i> text easily.\n<ul><li> Oh yeah. Lists too.\n</li></ul>\n</li><li> Its code can be downloaded from <a href="http://code.google.com/p/wikimarkup/">http://code.google.com/p/wikimarkup/</a>\n</li></ul>\n<p>This patch adds MediaWiki-style wiki markup to Django.\n</p>'

Attachments (1)

wikimarkup.patch (1.3 KB ) - added by Joshua "jag" Ginsberg <jag@…> 17 years ago.

Download all attachments as: .zip

Change History (6)

by Joshua "jag" Ginsberg <jag@…>, 17 years ago

Attachment: wikimarkup.patch added

comment:1 by Simon Greenhill, 17 years ago

Resolution: wontfix
Status: newclosed
Summary: [PATCH] Add MediaWiki style wikimarkup to django.contrib.markupAdd MediaWiki style wikimarkup to django.contrib.markup

Hmm.. nice patch Jag, but I'm not sure that we want to fill Django up with markup engines. I'm going to mark this as wontfix, but if someone really disagrees with me, please reopen this ticket with design-decision-needed.

comment:2 by Jeff Anderson, 17 years ago

Resolution: wontfix
Status: closedreopened
Triage Stage: UnreviewedDesign decision needed

I would venture to say that it is a good idea to include additional markup engines:

Currently there isn't a straightforward way to add your own engines. You would have to patch django or copy the markup filter code to your project and rework it that way. This seems a bit clumsy, and in time would create duplicate efforts among various developers. What do the core developers think?

comment:3 by James Bennett, 17 years ago

Resolution: wontfix
Status: reopenedclosed

A third-party solution is already available which provides a generic system for supporting arbitrary markup schemes through template filters, so I'd be inclined to leave this at wontfix.

comment:4 by Matt Harasymczuk, 15 years ago

Resolution: wontfix
Status: closedreopened

will not hurt, helps a lot!

comment:5 by Karen Tracey, 15 years ago

Resolution: wontfix
Status: reopenedclosed

Please don't reopen tickets closed wontfix, please see http://docs.djangoproject.com/en/dev/internals/contributing/#id1, which notes what you should do in cases where you disagree with such a decision.

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