0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 13:32:39 +00:00

Remove deprecated options

This commit is contained in:
Trevor Buckner
2023-05-31 11:14:57 -04:00
parent 3ed9702ef2
commit 2c73e59eb0
3 changed files with 17662 additions and 17620 deletions

View File

@@ -2,6 +2,8 @@
const _ = require('lodash');
const Marked = require('marked');
const MarkedExtendedTables = require('marked-extended-tables');
const {gfmHeadingId: MarkedGFMHeadingId} = require('marked-gfm-heading-id');
const {markedSmartypants: MarkedSmartyPants} = require('marked-smartypants');
const renderer = new Marked.Renderer();
//Processes the markdown within an HTML block if it's just a class-wrapper
@@ -237,9 +239,9 @@ const definitionLists = {
};
Marked.use({ extensions: [mustacheSpans, mustacheDivs, mustacheInjectInline, definitionLists] });
Marked.use(MarkedExtendedTables());
Marked.use(mustacheInjectBlock);
Marked.use({ renderer: renderer, smartypants: true });
Marked.use({ renderer: renderer, smartypants: true, mangle: false, smartypants: false });
Marked.use(MarkedExtendedTables(), MarkedGFMHeadingId(), MarkedSmartyPants());
//Fix local links in the Preview iFrame to link inside the frame
renderer.link = function (href, title, text) {