Learn R Programming

pandocfilters (version 0.1-6)

DefinitionList: 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

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

Run the code above in your browser using DataLab