On Sep 3, 4:31 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote: > Markdown wraps all text in <div> tag so truncate_html doesn't work
I haven't seen that either... It wraps the paragraphs in <p> tags through, which makes sense. To truncate it, why not change the order of your filters? {{ table.fieldname|truncate:30|markdown }} That'll truncate it THEN apply markdown. If you apply markdown in python code rather than templates (eg in your views or save() methods) use truncate_html as suggested by Chris. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---