@nuxt/content
Advanced tools
Comparing version
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.13.1](https://github.com/nuxt/content/compare/@nuxt/content@1.13.0...@nuxt/content@1.13.1) (2021-02-10) | ||
### Bug Fixes | ||
* **content:** handle empty lang ([#765](https://github.com/nuxt/content/issues/765)) ([60e758c](https://github.com/nuxt/content/commit/60e758c6f1e7bff4de37f3a499284139db0a7d60)) | ||
# [1.13.0](https://github.com/nuxt/content/compare/@nuxt/content@1.12.0...@nuxt/content@1.13.0) (2021-02-10) | ||
@@ -8,0 +19,0 @@ |
{ | ||
"name": "@nuxt/content", | ||
"version": "1.13.0", | ||
"version": "1.13.1", | ||
"repository": "nuxt/content", | ||
@@ -59,3 +59,3 @@ "license": "MIT", | ||
}, | ||
"gitHead": "54b9016e6726ac04d3e90212b8f2356978193c0f" | ||
"gitHead": "ebaedede5935f597fe325322ef57f09f6222e1ff" | ||
} |
@@ -16,6 +16,6 @@ const Prism = require('prismjs') | ||
const prismHighlighter = (rawCode, language, { lineHighlights, fileName }, { h, node }) => { | ||
let lang = language | ||
let lang = language || '' | ||
let grammer | ||
const diffLanguage = language.match(DIFF_HIGHLIGHT_SYNTAX) | ||
const diffLanguage = lang.match(DIFF_HIGHLIGHT_SYNTAX) | ||
if (diffLanguage) { | ||
@@ -22,0 +22,0 @@ lang = diffLanguage[2] |
94552
0.33%