Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diagram ok on desktop browser, syntax error on mobile #4415

Open
justmars opened this issue May 20, 2023 · 0 comments
Open

Diagram ok on desktop browser, syntax error on mobile #4415

justmars opened this issue May 20, 2023 · 0 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@justmars
Copy link

Description

Using the latest rc: [email protected], Mermaid works fine on desktop browser: both full width viewport and responsive viewports:

What appears on desktop Screenshot 2023-05-21 at 1 08 29 AM

When viewing from a mobile device, however, e.g. iPhone/iPad, a syntax error appears instead:

What appears on mobile Screenshot 2023-05-21 at 1 08 29 AM

Steps to reproduce

  1. Visit mv3.dev/ via desktop device
  2. Visit mv3.dev/ via mobile device
  3. Compare results

Screenshots

No response

Code Sample

<script type="module">
      import mermaid from 'https://cdn.jsdelivr.net/npm/[email protected]/+esm';
      mermaid.initialize({ startOnLoad: false, theme: 'dark'});
      await mermaid.run({
        querySelector: '.language-mermaid',
      });
    </script>

Setup

  • Mermaid version: 10.2.0-rc.3
  • Browser and Version: Edge 113, Chrome 113, Safari 16.5

Additional Context

No response

@justmars justmars added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

1 participant