replace_html: Replace HTML and other Tags in Leanpub Markdown

Description Usage Arguments Value

View source: R/replace_html.R

Description

Replace HTML and other Tags in Leanpub Markdown

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
replace_html(
  path = "manuscript",
  remove_resources_start = TRUE,
  fullbleed = FALSE,
  verbose = TRUE
)

replace_single_html(
  file,
  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.

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


muschellij2/leanbuild documentation built on Dec. 21, 2021, 11:03 p.m.