Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeX4 committed Sep 2, 2024
1 parent 5709c66 commit 47c0009
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/dynamic/cover.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ config-methods(cover: (self: none, body) => hide(body))
You will find that the existing cover function cannot hide the mark of enum and list, refer to [here](https://github.com/touying-typ/touying/issues/10), so you can hack:

```typst
#let s = (s.methods.update-cover)(self: s, body => box(scale(x: 0%, body)))
config-methods(cover: (self: none, body) => box(scale(x: 0%, body)))
```

## Semi-Transparent Cover Function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ config-methods(cover: (self: none, body) => hide(body))
你会发现现有的 cover 函数无法隐藏 enum 和 list 的 mark,参考 [这里](https://github.com/touying-typ/touying/issues/10),因此你可以进行 hack:

```typst
#let s = (s.methods.update-cover)(self: s, body => box(scale(x: 0%, body)))
config-methods(cover: (self: none, body) => box(scale(x: 0%, body)))
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ config-methods(cover: (self: none, body) => hide(body))
你会发现现有的 cover 函数无法隐藏 enum 和 list 的 mark,参考 [这里](https://github.com/touying-typ/touying/issues/10),因此你可以进行 hack:

```typst
#let s = (s.methods.update-cover)(self: s, body => box(scale(x: 0%, body)))
config-methods(cover: (self: none, body) => box(scale(x: 0%, body)))
```


Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-0.5.x/dynamic/cover.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ config-methods(cover: (self: none, body) => hide(body))
You will find that the existing cover function cannot hide the mark of enum and list, refer to [here](https://github.com/touying-typ/touying/issues/10), so you can hack:

```typst
#let s = (s.methods.update-cover)(self: s, body => box(scale(x: 0%, body)))
config-methods(cover: (self: none, body) => box(scale(x: 0%, body)))
```

## Semi-Transparent Cover Function
Expand Down

0 comments on commit 47c0009

Please sign in to comment.