pystitch / stitch

Write reproducible reports in Markdown
https://pystitch.github.io
MIT License
441 stars 20 forks source link

Add and intercept options disabled self-contained and standalone #8

Closed TomAugspurger closed 8 years ago

TomAugspurger commented 8 years ago

By default, pandoc produces document fragments for HTML (no header / footer), pdf, epub, epub3, fb2, docx all are standalone by default.

related options


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.

TomAugspurger commented 8 years ago

I was confusing self-contained and standalone in my head. For reference

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.