
Last chance! 50% off unlimited learning
Sale ends in
Creates a Pandoc's markdown style title block with optional author, title and date fields.
pandoc.title.return(author = "", title = "", date = "")
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
.
character vector or semicolon delimited list of authors without line break
character vector of lines of title or multiline string with \n
separators
any string fit in one line
John MacFarlane (2012): _Pandoc User's Guide_. https://johnmacfarlane.net/pandoc/README.html
pandoc.title('Tom', 'Render pandoc in R', '2012-05-16')
pandoc.title(c('Tom', 'Jerry'), 'Render pandoc in R', '2012-05-16')
pandoc.title('Tom; Jerry', 'Render pandoc in R', '2012-05-16')
pandoc.title('Tom; Jerry', c('Render', 'pandoc', 'in R'), '2012-05-16')
pandoc.title('Tom; Jerry', 'Render\n pandoc \n in R', '2012-05-16')
## missing fields
pandoc.title('Tom; Jerry', 'Render pandoc in R')
pandoc.title('Tom; Jerry')
pandoc.title(title = 'Render pandoc in R', date= '2012-05-16')
Run the code above in your browser using DataLab