Discussions

Ask a Question
Back to All

Using markdown

I've got a content block defined as markdown, and it's working fine on the production server, but when viewing locally it's not converting the markdown:

---
title: Home page
slug: index
position: 0
listed: true
published: true
is_layout: false
editable_elements:
  content/content: "# Content of the home page goes here\r\n\r\nThis is a **para**\r\n\r\nThen
    what happens?\r\n\r\n- something \r\n- something else"
---
{% extends 'layouts/default' %}
{% block content %}
{% editable_text content, format:'markdown' %}
# Content of the home page goes here
This is a para
{% endeditable_text %}
{% endblock content %}

Neither the default content or the editable elements bit shows up as HTML, but does on the live site.