Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit c7e370e

Browse files
committed
added default for empty parser plugins
1 parent 089668a commit c7e370e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"@nuxtjs/axios": "^2.2.1",
88
"markdown-it-anchor": "^4.0.0",
99
"markdown-it-link-attributes": "^1.0.0",
10-
"nuxt": "1.0.0-alpha.3",
10+
"nuxt": "^1.0.0-alpha.3",
1111
"nuxtent": "0.2.59",
1212
"prismjs": "^1.8.1"
1313
},

lib/util/parsers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const mdParser = (md, { anchorsLevel }) => {
2323
level: [anchorsLevel]
2424
}
2525
]
26-
].concat(md.plugins)
26+
].concat(md.plugins || [])
2727

2828
plugins.forEach(plugin => {
2929
Array.isArray(plugin)

0 commit comments

Comments
 (0)