- Updated dependencies [e133a03]
- Updated dependencies [e6b739c]
- Updated dependencies [bfca2ac]
- 53d3730: Bump version of "shiki" to 0.10.1
- Updated dependencies [aa047ea]
- Updated dependencies [53d3730]
- Updated dependencies [a77a7c6]
- Updated dependencies [b041c61]
- Updated dependencies [f4d749f]
- Updated dependencies [b4570bb]
- Updated dependencies [2bc773e]
- Updated dependencies [86d6214]
- Updated dependencies [e5ecfea]
- Updated dependencies [bc5330b]
- Updated dependencies [56b4e11]
- Updated dependencies [8fffcd9]
- Updated dependencies [bbba24f]
- 372ef26: Remove extra trailing newline in code blocks before twoslash processing
-
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:
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
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]
- 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 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]
- Updated dependencies [f92d030]