Skip to content

Latest commit

 

History

History
178 lines (106 loc) · 2.94 KB

File metadata and controls

178 lines (106 loc) · 2.94 KB

docusaurus-preset-shiki-twoslash

1.1.41

Patch Changes

1.1.40

Patch Changes

1.1.39

Patch Changes

1.1.38

Patch Changes

1.1.37

Patch Changes

1.1.36

Patch Changes

1.1.35

Patch Changes

  • 17c0d12: feat(docusaurus-preset): support shorthands, support mix of preset and plugin

1.1.34

Patch Changes

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

1.1.33

Patch Changes

1.1.32

Patch Changes

1.1.31

Patch Changes

1.1.30

Patch Changes

1.1.29

Patch Changes

1.1.27

Patch Changes

1.1.20

Patch Changes

1.1.19

Patch Changes

1.1.18

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

  • Updated dependencies [61a6af5]

1.1.16

Patch Changes

  • a2bb854: Fix copy button not working on production.

1.1.15

Patch Changes

1.1.14

Patch Changes

1.1.12

Patch Changes

1.1.11

Patch Changes