Skip to content

Add switch to omit image file extension in Markdown output #2411

@wuffi

Description

@wuffi

The auto_pdf option of knitr's include_graphics() function is very helpful and it would be great to have this option also for other formats.

Instead of modifying the include_graphics function itself would be to use Pandoc's -default-image-extension command-line option.
This does however require image paths without an extension (i.e. my_image instead of my_image.png) in the Markdown syntax, which is as far as I can see not possible with knitr.

Directly specifying the image path in a RMarkdown file in Markdown syntax does not allow to flexibly change for example the image width in contrast to knitr's include_graphics() function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature requests

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions