View source: R/knitr_internals_mod.R
adjust_asciidoc_hooks | R Documentation |
asciidoc
By default, knitr renders messages, warnings and errors to
[NOTE|WARNING|ERROR]-blocks in asciidoc
, which is ... not my
choice.
To restore knitr's behaviour, set hooks
or replacement
to
NULL
.
adjust_asciidoc_hooks(
hooks = c("message", "error", "warning"),
replacement = "source"
)
hooks |
Character vector naming the output hooks to be replaced by
the |
replacement |
The hook with which to replace the hooks given by
|
This is a modified version of
render_asciidoc
of knitr
version 1.18.7.
The return value of
knit_hooks$set
,
invisibly
NULL
, currently.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.