Skip to content

Instantly share code, notes, and snippets.

@yanyingwang
Last active May 23, 2021 14:57
Show Gist options
  • Save yanyingwang/d4313b161ad94c48f1d1bf2c073e1459 to your computer and use it in GitHub Desktop.
Save yanyingwang/d4313b161ad94c48f1d1bf2c073e1459 to your computer and use it in GitHub Desktop.
racket scribble helpers
@(define-syntax (examples/racket-input stx)
(syntax-case stx ()
[(_ content ...)
#'(begin
(linebreak)
(linebreak)
(bold "Examples:")
(racketinput content) ...)]))
@examples/racket-input[
(displayln "sfsf")
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment