hexo-shiki-twoslash
Advanced tools
Comparing version 1.0.13 to 1.0.14
# hexo-shiki-twoslash | ||
## 1.0.14 | ||
### Patch Changes | ||
- 8a0fcc0: Switch to use a new package which we've extracted out from Shiki Twoslash for handling parsing the different potential formats for codefence attributes: [fenceparser](https://www.npmjs.com/package/fenceparser) which means a breaking change in the remark plugin API. The semver major shouldn't affect anyone using the library via another tool (e.g. via the docusaurus plugins etc). | ||
- Updated dependencies [8a0fcc0] | ||
- remark-shiki-twoslash@2.0.0 | ||
## 1.0.12 | ||
@@ -4,0 +12,0 @@ |
@@ -26,7 +26,4 @@ const { sleep } = require("deasync") | ||
renderer.code = function (code, infostring) { | ||
const [lang, ...rest] = infostring.split(" ") | ||
const fence = rest.join(" ") | ||
return transformAttributesToHTML(code, lang, fence, highlighters, config.shikiTwoslash) | ||
return transformAttributesToHTML(code, infostring, highlighters, config.shikiTwoslash) | ||
} | ||
}) |
{ | ||
"name": "hexo-shiki-twoslash", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"license": "MIT", | ||
@@ -24,5 +24,5 @@ "homepage": "https://github.com/shikijs/twoslash", | ||
"dependencies": { | ||
"remark-shiki-twoslash": "1.5.7", | ||
"remark-shiki-twoslash": "2.0.0", | ||
"typescript": ">3" | ||
} | ||
} |
4470
25
+ Addedfenceparser@1.1.1(transitive)
+ Addedremark-shiki-twoslash@2.0.0(transitive)
+ Addedshiki-twoslash@2.0.2(transitive)
- Removedremark-shiki-twoslash@1.5.7(transitive)
- Removedshiki-twoslash@2.0.1(transitive)
Updatedremark-shiki-twoslash@2.0.0