write.pandoc: Write the JSON-formatted AST to a connection

View source: R/utility.R

write.pandocR Documentation

Write the JSON-formatted AST to a connection

Description

Write the JSON-formatted AST to a connection.

Usage

write.pandoc(json, file, format, exchange = c("arg", "file"))

Arguments

json

a JSON representation of the AST to be written out

file

a connection object or a character string to which the JSON-formatted AST is written

format

a character string giving the format (e.g. "latex", "html")

exchange

a character string

Details

If you want to apply a filter to the document before it get's written out, or your pandoc installation is not registered in the PATH it can be favorable to provide your own writer function to the document class.


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