| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/pandoc.R |
| 3 |
\name{pandoc.image.return} |
| 4 |
\alias{pandoc.image.return} |
| 5 |
\alias{pandoc.image} |
| 6 |
\title{Create pandoc image tags} |
| 7 |
\usage{ |
| 8 |
pandoc.image.return(img, caption = storage$caption) |
| 9 |
} |
| 10 |
\arguments{ |
| 11 |
\item{img}{image path} |
| 12 |
|
| 13 |
\item{caption}{text} |
| 14 |
} |
| 15 |
\value{ |
| 16 |
By default this function outputs (see: \code{cat}) the result. If you would want to catch the result instead, then call the function ending in \code{.return}. |
| 17 |
} |
| 18 |
\description{ |
| 19 |
Creates a Pandoc's markdown format image hyperlink. |
| 20 |
} |
| 21 |
\note{ |
| 22 |
The \code{caption} text is read from an internal buffer which defaults to \code{NULL}. To update that, call \code{link{set.caption}} before. |
| 23 |
} |
| 24 |
\examples{ |
| 25 |
pandoc.image('foo.png') |
| 26 |
pandoc.image('foo.png', 'Nice image, huh?') |
| 27 |
} |
| 28 |
\references{ |
| 29 |
John MacFarlane (2012): _Pandoc User's Guide_. \url{https://johnmacfarlane.net/pandoc/README.html} |
| 30 |
} |
| 31 |
\seealso{ |
| 32 |
\code{\link{set.caption}} |
| 33 |
} |