Closed TomAugspurger closed 8 years ago
I was confusing self-contained and standalone in my head. For reference
data:
We'll be standalone and self-contained by default. We'll define a couple new command-line arguments --no-standalone and --no-self-contained if you want to generate those kinds of output.
Every image will get wrapped in an Image tag,
[Image(['', [], []], [Str("")], [data, ""])]
If we're self-contained then data
is base64 png or svg, e.g. data:image/png;base64,{data}
If we're not self-contained then data
is a file path, where we've written the png / svg / whatever.
By default, pandoc produces document fragments for HTML (no header / footer),
pdf, epub, epub3, fb2, docx
all are standalone by default.related options
--self-contained
Thoughts: standalone is nice for easily generating output that you can share. R Markdown outputs standalone HTML by default, and I think that's the right choice.