You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Export using pandoc fails when using non-ASCII characters in a Mermaid diagram, returning the error: Pandoc Export Failed: InvalidCharacterError: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
Minimal reproducing example
```mermaid
graph LR
G[こんにちは] --> A
```
The problem seems to be in convertSVGtoPNG() in renderer.ts, which calls btoa() on a SVG data that contains non-Latin1 characters.
The text was updated successfully, but these errors were encountered:
Thank you for developing this awesome plugin!!
Issue
Export using pandoc fails when using non-ASCII characters in a Mermaid diagram, returning the error:
Pandoc Export Failed: InvalidCharacterError: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
Minimal reproducing example
The problem seems to be in
convertSVGtoPNG()
inrenderer.ts
, which callsbtoa()
on a SVG data that contains non-Latin1 characters.The text was updated successfully, but these errors were encountered: