pandoc.image.return: Create pandoc image tags

Description Usage Arguments Value Note References See Also Examples

View source: R/pandoc.R

Description

Creates a Pandoc's markdown format image hyperlink.

Usage

1
pandoc.image.return(img, caption = storage$caption)

Arguments

img

image path

caption

text

Value

By default this function outputs (see: cat) the result. If you would want to catch the result instead, then call the function ending in .return.

Note

The caption text is read from an internal buffer which defaults to NULL. To update that, call link{set.caption} before.

References

John MacFarlane (2012): _Pandoc User's Guide_. https://johnmacfarlane.net/pandoc/README.html

See Also

set.caption

Examples

1
2
pandoc.image('foo.png')
pandoc.image('foo.png', 'Nice image, huh?')

Example output

sh: 1: cannot create /dev/null: Permission denied
![](foo.png)![Nice image, huh?](foo.png)

pander documentation built on June 13, 2021, 9:06 a.m.