I have a Javascript function that converts markdown to html:
<script>
$(function () {
editormd.markdownToHTML("content", {
//htmlDecode : "style,script,iframe", // you can filter tags decode
emoji : true,
taskList : true,
tex : true,
flowChart : true,
sequenceDiagram : true,
});
$(".reference-link").each(function (i,obj) {
console.log(obj)
})
})
</script>
But when I run this in a for loop the Javascript only runs on the first post.
{% for entry in entry_list %}
<div id="content"><textarea>{{ entry.content|truncatechars_html:180 }}</textarea></div>
{% endfor %}
How do I make it run on each loop?