You've already forked code_examples_server
mirror of
https://github.com/AdaCore/code_examples_server.git
synced 2026-02-12 12:45:18 -08:00
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:
@@ -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>
|
||||
|
||||
@@ -5,4 +5,4 @@ register = template.Library()
|
||||
|
||||
@register.filter
|
||||
def markdownify(text):
|
||||
return markdown.markdown(text, safe_mode='escape')
|
||||
return markdown.markdown(text)
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user