Re: Displaying markdown in html

2012-05-05 Thread Emily
Thank so much it worked. Emily On Friday, May 4, 2012, creecode wrote: > Hello Emily, > > This is not a direct answer to your question. It looks like Tom has your > answer. You will most likely want to move the {% load markup %} to near to > top of your template. Generally loads only needs

Re: Displaying markdown in html

2012-05-04 Thread su
doc:disable auto-escaping This will not be escaped: {{ data|safe }} -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/JtUzSEmy2X4J. To post to this group,

Re: Displaying markdown in html

2012-05-04 Thread su
#model class Article(models.Model): udate=models.DateTimeField(auto_now=True,auto_now_add=True) markdown_content=models.TextField() html_content=models.TextField(editable=False) def save(self): self.html_content=markdown(self.markdown_content)

Re: Displaying markdown in html

2012-05-04 Thread creecode
Hello Emily, This is not a direct answer to your question. It looks like Tom has your answer. You will most likely want to move the {% load markup %} to near to top of your template. Generally loads only needs to be done once at the start of the template. On Friday, May 4, 2012 5:55:28 AM

Re: Displaying markdown in html

2012-05-04 Thread Tom Evans
On Fri, May 4, 2012 at 1:55 PM, Emily Namugaanyi wrote: > I am trying to display markdown in my html but it is returning a body > with html tags: > This is what is happening... > > code in the > > > > > > >  {% for guideline in guidelines %} >                    {% load

Displaying markdown in html

2012-05-04 Thread Emily Namugaanyi
I am trying to display markdown in my html but it is returning a body with html tags: This is what is happening... code in the {% for guideline in guidelines %} {% load markup %} Question: {{ guideline.question }} Answer: {{