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

Crash if broken tags exist when enabling html #33

Open
exKAZUu opened this issue Jun 8, 2020 · 0 comments
Open

Crash if broken tags exist when enabling html #33

exKAZUu opened this issue Jun 8, 2020 · 0 comments

Comments

@exKAZUu
Copy link
Contributor

exKAZUu commented Jun 8, 2020

The following code causes the bottom error (in storybook).

  .add('Broken tag', () => (
    <Marp
      options={{
        html: true,
        markdown: {
          breaks: true,
        },
      }}
      markdown={text('Markdown', `<small>aaa`)}
    />
  ))
Cannot read property 'map' of undefined
TypeError: Cannot read property 'map' of undefined
    at render (http://localhost:6006/main.17a86d2330c9200446be.bundle.js:371:107)
    at http://localhost:6006/main.17a86d2330c9200446be.bundle.js:371:118
    at Array.map (<anonymous>)
    at render (http://localhost:6006/main.17a86d2330c9200446be.bundle.js:371:107)
    at http://localhost:6006/main.17a86d2330c9200446be.bundle.js:77:183
    at Array.map (<anonymous>)
    at Marp (http://localhost:6006/main.17a86d2330c9200446be.bundle.js:76:25)
    at renderWithHooks (http://localhost:6006/vendors~main.17a86d2330c9200446be.bundle.js:134899:18)
    at mountIndeterminateComponent (http://localhost:6006/vendors~main.17a86d2330c9200446be.bundle.js:137578:13)
    at beginWork (http://localhost:6006/vendors~main.17a86d2330c9200446be.bundle.js:138692:16)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant