adjust_asciidoc_hooks: Adjust 'knitr"s Hooks for 'asciidoc'

View source: R/knitr_internals_mod.R

adjust_asciidoc_hooksR 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.


rasciidoc documentation built on Aug. 16, 2023, 1:09 a.m.