twoslash-cli
Advanced tools
Comparing version
# twoslash-cli | ||
## 1.3.1 | ||
### 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` | ||
- 277374b: Eleventy: mainly just docs updates | ||
CLI: Adds a flag to output TSX components from a JS/Markdown file | ||
- Updated dependencies [61a6af5] | ||
- remark-shiki-twoslash@2.0.3 | ||
## 1.2.15 | ||
@@ -4,0 +39,0 @@ |
{ | ||
"name": "twoslash-cli", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"main": "index.js", | ||
@@ -18,3 +18,3 @@ "bin": { | ||
"remark": "^13.0.0", | ||
"remark-shiki-twoslash": "2.0.1", | ||
"remark-shiki-twoslash": "2.0.3", | ||
"unist-util-visit": "^3.1.0" | ||
@@ -21,0 +21,0 @@ }, |
23102
5.02%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated