Skip to content

Commit

Permalink
Update marked to 4.2.12 (#1993)
Browse files Browse the repository at this point in the history
* Update marked to 4.2.12


---------

Co-authored-by: Koy Zhuang <[email protected]>
  • Loading branch information
dzsibi and Koooooo-7 committed Apr 22, 2023
1 parent f4f21a3 commit f5ad3d2
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
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

1 comment on commit f5ad3d2

@vercel
Copy link

@vercel vercel bot commented on f5ad3d2 Apr 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.