Hiding portions of examples in code blocks? #134
-
Sometimes there's verbose setup in examples: package main
import "fmt"
func main() {
fmt.Println("Execute code directly inside the slides")
} But this is a little verbose. It would be nice if slides could show: fmt.Println("Execute code directly inside the slides")
Is there something similar to RustDocs example hiding? Like annotating: # package main
#
# import "fmt"
#
# func main() {
fmt.Println("Execute code directly inside the slides")
# } |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
This is a fantastic idea! Thanks so much for suggesting the ability to hide verbose code. Let me know if you are interested in implementing this, I would happily accept a PR to do this, otherwise I can tackle it and let you know once it is implemented. |
Beta Was this translation helpful? Give feedback.
-
See issue #135 |
Beta Was this translation helpful? Give feedback.
See issue #135