Skip to content

[Bug] Mermaid code block sets zoom to 0.5 #138

@haegglund

Description

@haegglund

Description

A Mermaid code block with content sets .markdown-body attribute zoom: 0.5;, which makes the preview way too small. Opening the inspector and changing zoom to 1.0 works, but as soon as the document is edited it reverts to 0.5.

An empty code block does not cause the incorrect behaviour, but one with just diagram type does (e.g. sequenceDiagram).

This happens with or without any custom CSS (in styles/preview.css) present.

Image

Sample Markdown

Title

sequenceDiagram
A->>B: Hello, World!
Loading

MarkEdit Version

1.33.0

MarkEdit Preview Version

1.8.0 (full)

macOS Version

26.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions