Closed ntjess closed 8 months ago
It's not really intended to be used like that. The bug is there for sure and easy to fix. However, show-example
creates a new raw
and that would result in a recursive show rule.
I can change that and prevent the creation of a new raw
but show-example
still wouldn't work quite as within docstrings because the scope is not passed down automatically and user-defined functions would not be available.
On the other hand, you could do which would work.
#let my-var = [34]
#show raw: show-example.show-example.with(scope: (my-var: my-var))
```typ
Hello world #my-var
Okay, I'll push some update that will allow doing that.