8 Body enhancers
You may call these functions in the enhance-body function in your frog.rkt.
| (require frog/enhance-body) | package: frog |
(This module is automatically required for you by the frog/config language used in frog.rkt.)
Use Pygments to highlight markdown code blocks.
Tip: In Scribble format sources, you can use
pygment-code.
The value of python-executable is given to
find-executable-path, so the default "python"
will work if the version of Python that Pygments wants is on the
path.
procedure
(auto-embed-tweets xs #:parents? parents?) → (listof xexpr/c)
xs : (listof xexpr/c) parents? : boolean?
Replace links to tweets with embedded tweets. In markdown, must be
auto-links alone in a paragraph (blank lines above and below), for
example:
<https://twitter.com/racketlang/status/332176422003163138> |
When parents? is true also embeds parent tweets.
procedure
(add-racket-doc-links xs #:code? code? #:prose? prose?) → (listof xexpr/c) xs : (listof xexpr/c) code? : boolean? prose? : boolean?
When code? is true, try to automatically link to Racket
documentation from symbols in ```racket markdown fenced
code blocks.
When prose? is true, try to automatically link to Racket documentation from symbols in markdown of the form `symbol`[racket]? i.e. This is similar to the @racket[] form in Scribble.