I'll admit I'm not a markdown user generally and so I had neglected these extensions with the intent to do something similar to what the markdown filter does to handle this case but forgot before posting this patch.
I'll update the patch mirror the way that the template tag works and provide a markdown_options parameter on the field. As far as an additional parameter to override the rendering function, I'm thinking that perhaps the best option is to provide render_markup as a method on the class and allow for it to be overridden. -james On Feb 22, 5:16 pm, Waylan Limberg <way...@gmail.com> wrote: > On Sun, Feb 22, 2009 at 4:46 PM, James Turk <james.p.t...@gmail.com> wrote: > > > What about other types of markup? > > Some have suggested supporting more types of markup but to me this > > seems outside the scope of contrib.markup which currently only > > supports ReST, markdown, and textile. Should this field not meet some > > peoples needs the can add their own custom markup field and base it on > > this design. > > Well, at the vary least, you could make it easier for one to add their > own type of markup. Perhaps make the render-markup function such that > one could provide their own render function without needing to > subclass the field. > > Personally, I would use this every time as I will never use the > default markdown. I will always be adding in some of the available > extensions[1]. Currently, the only way to do that is to write my own > render method. It would be nice to just pass that in on declaring the > field without creating my own subclass etc. > > [1]:http://www.freewisdom.org/projects/python-markdown/Available_Extensions > > -- > ---- > \X/ /-\ `/ |_ /-\ |\| > Waylan Limberg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---