Am now able to add the div editors tag directly in the markdown and have it be rendered on the webpage.

This commit is contained in:
Robert Tice
2017-11-21 17:57:23 -05:00
parent eb6e7ce454
commit 4a9ee53d82
3 changed files with 9 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Ada for the C Programmer</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="{% static "common.css" %}" />
<link rel="stylesheet" href="{% static "style.css" %}" />
</head>
<body>

View File

@@ -5,4 +5,4 @@ register = template.Library()
@register.filter
def markdownify(text):
return markdown.markdown(text, safe_mode='escape')
return markdown.markdown(text)

View File

@@ -12,6 +12,13 @@ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
---
### Test
This is a test of inserting code blocks in the markdown
<div example_editor="Hello world runnable example"></div>
---
## Lorem Ipsum Dolor
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.