Skip to content

Images converted from code blocks via codeBlockToImageCommand are not placed into image placeholders in templates #517

Description

@mrtry

Version

1.23.1

What happened?

When a slide template has an image placeholder, images referenced via ![alt](path) syntax are correctly placed into the image placeholder position.

However, when a code block (e.g. mermaid) is converted to an image via codeBlockToImageCommand, the resulting image is not placed into the template's image placeholder. Instead, it appears to be inserted as part of the body content.

This causes a discrepancy in the presentation output between:

  • Slides using ![alt](path) image references (correctly placed in image placeholder)
  • Slides using code blocks converted to images via codeBlockToImageCommand (not placed in image placeholder)

Expected behavior:
Images converted from code blocks via codeBlockToImageCommand should be placed into the template's image placeholder, the same way as ![alt](path) image references.

Workaround:

  • Manually fix the image position in Google Slides after deck apply.
  • Pre-render the code block to an image file manually, then reference it via ![alt](path) syntax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions