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

[BUG] Arrows in markdown code snippets are way off on the right #15133

Open
Fullchee opened this issue Jun 3, 2021 · 1 comment
Open

[BUG] Arrows in markdown code snippets are way off on the right #15133

Fullchee opened this issue Jun 3, 2021 · 1 comment

Comments

@Fullchee
Copy link

Fullchee commented Jun 3, 2021

Describe the bug

Arrows in markdown code snippets are way off on the right

Steps to reproduce the behavior

  1. Install Storybook 6.2.9 in a new project
  2. Create a story with this content
import React from 'react';

const Template = (args) => <button {...args} />;

const DESCRIPTION = ```

\`\`\`js
const arrowFunction = () => 42;
\`\`\`
export default {
  title: 'ButtonCategory/Button',
  component: Button,
  parameters: {
    docs: {
      description: {
        component: DESCRIPTION,
      }
    },
  },
};

Expected behavior

The arrow should be where it is in the text and not far out on the right.

Screenshots and/or logs

image

Environment

  • OS: MacOS Big Sur 11.2.3
  • Node.js version: v14.16.0
  • NPM version: 6.14.11
  • Browser: Chrome, Firefox and Safari
  • Browser version 90.0.4430.212
  • Device MacBook Pro (Intel)

Additional context

Unrelated: Safari doesn't have ligatures on the arrow
image

@Fullchee
Copy link
Author

I can reproduce this issue on 6.3.4

@shilman shilman removed the P1 label Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants