hexo-shiki-twoslash
Advanced tools
Comparing version 1.0.16 to 1.0.17
# hexo-shiki-twoslash | ||
## 1.0.17 | ||
### Patch Changes | ||
- 61a6af5: Adds support for an annotation system. This is still work in progress, but the goal is to allow you to provide a way to write meta-commentary on a code-sample from the outside of the code block by having an arrow and some comments. | ||
For example | ||
```` | ||
```js twoslash | ||
function compact(arr) { | ||
// @annotate: left 56 - No editor warnings in JavaScript files<br/><br/>This crashes at runtime. | ||
if (orr.length > 10) return arr | ||
return arr | ||
} | ||
``` | ||
```` | ||
Would create a codeblocck with: | ||
```js | ||
function compact(arr) { | ||
if (orr.length > 10) return arr | ||
return arr | ||
} | ||
``` | ||
And a little SVG arrow and the text "No editor warnings in JavaScript files<br/><br/>This crashes at runtime." next to it. | ||
I'll be tweaking the syntax over time, but for now the syntax is `// @annotate: [left/right] [arrow degree rotatation] [text degree rotatation] - Text to show` | ||
- Updated dependencies [61a6af5] | ||
- remark-shiki-twoslash@2.0.3 | ||
## 1.0.15 | ||
@@ -4,0 +37,0 @@ |
{ | ||
"name": "hexo-shiki-twoslash", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"license": "MIT", | ||
@@ -24,5 +24,5 @@ "homepage": "https://github.com/shikijs/twoslash", | ||
"dependencies": { | ||
"remark-shiki-twoslash": "2.0.2", | ||
"remark-shiki-twoslash": "2.0.3", | ||
"typescript": ">3" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5523
+ Addedremark-shiki-twoslash@2.0.3(transitive)
+ Addedshiki-twoslash@2.1.1(transitive)
- Removedremark-shiki-twoslash@2.0.2(transitive)
- Removedshiki-twoslash@2.1.0(transitive)
Updatedremark-shiki-twoslash@2.0.3