DefinitionList: Definition List

View source: R/pandocfilters.R

DefinitionListR Documentation

Definition List

Description

Constructs a block object of type "DefinitionList".

Usage

DefinitionList(x)

Arguments

x

a list of key value pairs, the key is a list of "inline" objects and the values are a list of lists of objects of type "block".

Details

In the pandoc API https://johnmacfarlane.net/BayHac2014/doc/pandoc-types/Text-Pandoc-Definition.html the DefinitionList is described as follows, each list item is a pair consisting of a term (a list of "inline" objects) and one or more definitions (each a list of blocks).

Examples

key <- list(Str("key"))
value <- list(list(Plain(list(Str("value")))))
DefinitionList(list(list(key, value), Definition("some key", Plain("some value"))))

pandocfilters documentation built on Aug. 12, 2022, 1:05 a.m.