replace_html {ottrpal}R Documentation

Replace HTML and other Tags in Leanpub Markdown

Description

Replace HTML and other Tags in Leanpub Markdown

Usage

replace_html(
  path = "manuscript",
  remove_resources_start = TRUE,
  footer_text = NULL,
  fullbleed = FALSE,
  verbose = TRUE
)

replace_single_html(
  file,
  footer_text = NULL,
  remove_resources_start = TRUE,
  fullbleed = FALSE,
  verbose = TRUE
)

Arguments

path

path to the markdown files that need replacement.

remove_resources_start

remove the word 'resources/' at the front of any image path.

footer_text

a bit of text that will be added to the end of each file before the references section.

fullbleed

should the image have the attribute 'fullbleed: true'?

verbose

print diagnostic messages

file

individual markdown file

Value

A list of output files and diagnostics


[Package ottrpal version 1.2.1 Index]