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

Update marked to 4.2.12 #1993

Merged
merged 7 commits into from
Apr 22, 2023
Merged
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
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"*.js": "eslint --fix"
},
"dependencies": {
"marked": "^1.2.9",
"marked": "^4.2.12",
"medium-zoom": "^1.0.8",
"opencollective-postinstall": "^2.0.2",
"prismjs": "^1.29.0",
Expand Down
2 changes: 1 addition & 1 deletion src/core/global-api.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import prism from 'prismjs';
import marked from 'marked';
import { marked } from 'marked';
import * as util from './util';
import * as dom from './util/dom';
import { Compiler } from './render/compiler';
Expand Down
2 changes: 1 addition & 1 deletion src/core/render/compiler.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import marked from 'marked';
import { marked } from 'marked';
import { isAbsolutePath, getPath, getParentPath } from '../router/util';
import { isFn, merge, cached, isPrimitive } from '../util/core';
import { tree as treeTpl } from './tpl';
Expand Down
8 changes: 3 additions & 5 deletions src/plugins/search/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,9 @@ function getAllPaths(router) {

function getTableData(token) {
if (!token.text && token.type === 'table') {
token.cells.unshift(token.header);
token.text = token.cells
.map(function (rows) {
return rows.join(' | ');
})
token.rows.unshift(token.header);
token.text = token.rows
.map(columns => columns.map(r => r.text).join(' | '))
.join(' |\n ');
}
return token.text;
Expand Down
Loading