From 6ff4972ca9ed194aae36d6a3cdfa90e4050713da Mon Sep 17 00:00:00 2001 From: Elliot Bobrow <77182873+ebobrow@users.noreply.github.com> Date: Tue, 14 Jun 2022 16:00:18 -0700 Subject: add `--embed-resources` flag (#8121) * Add `--embed-resources` flag for `--self-contained` without implying `--standalone` * Deprecate `--self-contained flag` Closes #7331 --- doc/faqs.md | 2 +- doc/lua-filters.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/faqs.md b/doc/faqs.md index 2dffcbf16..70d95cfa8 100644 --- a/doc/faqs.md +++ b/doc/faqs.md @@ -136,7 +136,7 @@ example, First, unless your target is a binary format (docx, odt, epub), you must use either `--extract-media` or (for HTML only) -`--self-contained` to make the images in the ipynb container +`--embed-resources` to make the images in the ipynb container available to your output file. Second, some Jupyter extensions, especially those that use JavaScript diff --git a/doc/lua-filters.md b/doc/lua-filters.md index 9f3bb6928..f64c77298 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -686,7 +686,7 @@ Images are added to the mediabag. For output to binary formats, pandoc will use images in the mediabag. For textual formats, use `--extract-media` to specify a directory where the files in the mediabag will be written, or (for HTML only) use -`--self-contained`. +`--embed-resources`. ``` lua -- Pandoc filter to process code blocks with class "abc" containing @@ -694,7 +694,7 @@ mediabag will be written, or (for HTML only) use -- -- * Assumes that abcm2ps and ImageMagick's convert are in the path. -- * For textual output formats, use --extract-media=abc-images --- * For HTML formats, you may alternatively use --self-contained +-- * For HTML formats, you may alternatively use --embed-resources local filetypes = { html = {"png", "image/png"} , latex = {"pdf", "application/pdf"} @@ -3779,7 +3779,7 @@ Usage: The `pandoc.mediabag` module allows accessing pandoc's media storage. The "media bag" is used when pandoc is called with the -`--extract-media` or (for HTML only) `--self-contained` option. +`--extract-media` or (for HTML only) `--embed-resources` option. The module is loaded as part of module `pandoc` and can either be accessed via the `pandoc.mediabag` field, or explicitly -- cgit v1.2.3