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

Commit

Permalink
added default for empty parser plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
alidcast committed Dec 25, 2017
1 parent 089668a commit c7e370e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@nuxtjs/axios": "^2.2.1",
"markdown-it-anchor": "^4.0.0",
"markdown-it-link-attributes": "^1.0.0",
"nuxt": "1.0.0-alpha.3",
"nuxt": "^1.0.0-alpha.3",
"nuxtent": "0.2.59",
"prismjs": "^1.8.1"
},
Expand Down
2 changes: 1 addition & 1 deletion lib/util/parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const mdParser = (md, { anchorsLevel }) => {
level: [anchorsLevel]
}
]
].concat(md.plugins)
].concat(md.plugins || [])

plugins.forEach(plugin => {
Array.isArray(plugin)
Expand Down

0 comments on commit c7e370e

Please sign in to comment.