R/iframe_leanpub.R
make_embed_markdown.Rd
Make Leanpub file that has embed webpage of a chapter
make_embed_markdown(
url,
chapt_title,
width_spec = 800,
height_spec = 600,
img_path,
output_dir = "manuscript",
verbose = TRUE,
footer_text = ""
)
The url to the chapter that is to be embed
Title of chapter to be used as file name and printed on iframe
How wide should the iframe be in pixels?
How high should the iframe be in pixels?
File path to image to use for poster
output directory to put files. It should likely be relative to path
print diagnostic messages
Optionally can add a bit of text that will be added to the end of each file before the references section.
A markdown file with an iframe of the provided chapter