adjust_asciidoc_hooks {rasciidoc}R Documentation

Adjust knitr's Hooks for asciidoc

Description

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.

Usage

adjust_asciidoc_hooks(
  hooks = c("message", "error", "warning"),
  replacement = "source"
)

Arguments

hooks

Character vector naming the output hooks to be replaced by the replacement's hooks.

replacement

The hook with which to replace the hooks given by hooks.

Details

This is a modified version of render_asciidoc of knitr version 1.18.7.

Value

The return value of knit_hooks$set, invisibly NULL, currently.


[Package rasciidoc version 4.1.1 Index]