mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 14:27:10 +00:00
Add renderer option to HTML blocks in Markdown
This commit is contained in:
1 parent
fe5e91c377
commit
17525a4f41
1 file changed
+1
-1
@@ -10,7 +10,7 @@ renderer.html = function (html) {
|
||||
const openTag = html.substring(0, html.indexOf('>')+1);
|
||||
html = html.substring(html.indexOf('>')+1);
|
||||
html = html.substring(0, html.lastIndexOf('</div>'));
|
||||
return `${openTag} ${Marked.parse(html)} </div>`;
|
||||
return `${openTag} ${Marked.parse(html, { renderer: renderer })} </div>`;
|
||||
}
|
||||
return html;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user