Markdown: Convert Markdown via Jinja filter in the template
This gets rid of the use of javascript for converting node/post description. Now we only use markdown.js for real time as-we-type stuff, like node/post editing or commenting.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
| {% if node.description %}
|
||||
.node-details-description#node-description
|
||||
| {{node.description}}
|
||||
| {{ node.description | markdown }}
|
||||
| {% endif %}
|
||||
|
||||
.node-details-meta.footer
|
||||
@@ -32,7 +32,7 @@ script.
|
||||
// Push the correct URL onto the history. This push happens after the id has
|
||||
// been pushed to the history already. We should probably keep only this and
|
||||
// skip the project-level displayNode push.
|
||||
|
||||
|
||||
var url = '{{ node.properties.url }}'
|
||||
var replace_state = {nodeId: '{{node._id}}', url: url};
|
||||
window.history.replaceState(
|
||||
|
Reference in New Issue
Block a user