diff --git a/public/js/extra.js b/public/js/extra.js
index 2a43268e..2930ec25 100644
--- a/public/js/extra.js
+++ b/public/js/extra.js
@@ -429,6 +429,13 @@ var md = new Remarkable('full', {
typographer: true,
highlight: highlightRender
});
+md.renderer.rules.image = function (tokens, idx, options /*, env */ ) {
+ var src = ' src="' + Remarkable.utils.escapeHtml(tokens[idx].src) + '"';
+ var title = tokens[idx].title ? (' title="' + Remarkable.utils.escapeHtml(Remarkable.utils.replaceEntities(tokens[idx].title)) + '"') : '';
+ var alt = ' alt="' + (tokens[idx].alt ? Remarkable.utils.escapeHtml(Remarkable.utils.replaceEntities(tokens[idx].alt)) : '') + '"';
+ var suffix = options.xhtmlOut ? ' /' : '';
+ return '';
+}
md.renderer.rules.list_item_open = function ( /* tokens, idx, options, env */ ) {
return '
';
};
diff --git a/public/js/syncscroll.js b/public/js/syncscroll.js
index 01bc7d78..66d68e64 100644
--- a/public/js/syncscroll.js
+++ b/public/js/syncscroll.js
@@ -78,14 +78,6 @@ md.renderer.rules.heading_open = function (tokens, idx) {
return '';
};
-md.renderer.rules.image = function (tokens, idx, options /*, env */ ) {
- var src = ' src="' + Remarkable.utils.escapeHtml(tokens[idx].src) + '"';
- var title = tokens[idx].title ? (' title="' + Remarkable.utils.escapeHtml(Remarkable.utils.replaceEntities(tokens[idx].title)) + '"') : '';
- var alt = ' alt="' + (tokens[idx].alt ? Remarkable.utils.escapeHtml(Remarkable.utils.replaceEntities(tokens[idx].alt)) : '') + '"';
- var suffix = options.xhtmlOut ? ' /' : '';
- return '';
-}
-
md.renderer.rules.fence = function (tokens, idx, options, env, self) {
var token = tokens[idx];
var langClass = '';