Skip to content

Latest commit

 

History

History
153 lines (94 loc) · 3.07 KB

File metadata and controls

153 lines (94 loc) · 3.07 KB

eleventy-plugin-shiki-twoslash

1.1.0

Minor Changes

  • 53d3730: Bump version of "shiki" to 0.10.1

Patch Changes

1.0.46

Patch Changes

1.0.45

Patch Changes

1.0.44

Patch Changes

  • Updated dependencies [f4d749f]
  • Updated dependencies [b4570bb]
  • Updated dependencies [2bc773e]

1.0.43

Patch Changes

1.0.42

Patch Changes

1.0.41

Patch Changes

1.0.40

Patch Changes

1.0.39

Patch Changes

1.0.37

Patch Changes

1.0.25

Patch Changes

  • ed7ff80: Automatically remove trailing newlines
  • Updated dependencies [bbba24f]

1.0.24

Patch Changes

1.0.23

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:

    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

  • 277374b: Eleventy: mainly just docs updates CLI: Adds a flag to output TSX components from a JS/Markdown file

  • Updated dependencies [61a6af5]

1.0.20

Patch Changes

1.0.19

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 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]

1.0.17

Patch Changes

1.0.16

Patch Changes