Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update marked to v4 #324

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions nunjucks/rendering/filters/marked.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ describe("marked custom filter", () => {
'</ul>\n' +
'<pre><code>code\n' +
' indented code\n' +
'code</code></pre>\n' +
'code\n' +
'</code></pre>\n' +
''
);
});
});
});
4 changes: 2 additions & 2 deletions nunjucks/services/renderMarkdown.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const marked = require('marked');
const { marked } = require('marked');

/**
* @dgService renderMarkdown
Expand All @@ -25,4 +25,4 @@ module.exports = function renderMarkdown(trimIndentation) {
};

return content => marked(content, { renderer: renderer });
};
};
5 changes: 3 additions & 2 deletions nunjucks/services/renderMarkdown.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ describe("renderMarkdown", () => {
'<p>some test</p>\n' +
'<pre><code>code\n' +
' indented code\n' +
'more code</code></pre>\n' +
'more code\n' +
'</code></pre>\n' +
'<p>more text</p>\n'
);

});

});
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"htmlparser2": "^3.7.3",
"lodash.difference": "^4.5.0",
"lodash.template": "^4.5.0",
"marked": "^0.7.0",
"marked": "^4.0.17",
"minimatch": "^3.0.2",
"mkdirp": "^1.0.3",
"nunjucks": "^3.2.2",
Expand Down
Loading