Skip to content

Exporting a Mermaid diagram to png fails when a text contains   #5937

@raffaeler

Description

@raffaeler
  • Searched existing issues to avoid creating duplicates.
  • Confirmed that it can be reproduced in built-in themes without customized css.
  • Searched http://support.typora.io/

Describe the bug
If a mermaid graph contains one or more   characters in the text, the export operation to .png fails.

To Reproduce
Steps to reproduce the behavior:

  1. Create a file with the following mermaid markup:
flowchart LR
	Test["   Test"]
  1. Try to export the diagram to png: it fails
  2. Try to export the diagram to svg: it succeeds, but appears as broken in Chrome

Expected behavior
I expect the export operation to be successful.

Screenshots / Screencasts
Not applicable. The operation fails silently.

Desktop (please complete the following information):

  • OS: Windows 10 64bit

Typora Version
1.7.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions