remarkjs / remark-gfm

remark plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists)
https://remark.js.org
MIT License
721 stars 25 forks source link

TypeError: Cannot read property '3' of undefined #22

Closed Wekananda closed 3 years ago

Wekananda commented 3 years ago

Initial checklist

Affected packages and versions

2.0.0

Link to runnable example

No response

Steps to reproduce

Here my code

import React from "react"; import Markdown from "react-markdown";

import gfm from "remark-gfm"; import raw from "rehype-raw";

const markdownSource = <span style="background: green">working example</span> ;

export default function App() { return (

{markdownSource}

); }

Expected behavior

Package/plugin loaded without error

Actual behavior

Got error TypeError: Cannot read property '3' of undefined

image

Runtime

Node v16

Package manager

npm v7

OS

Windows

Build and bundle tools

Next.js

github-actions[bot] commented 3 years ago

Hi! Thanks for taking the time to contribute!

Because we treat issues as our backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn’t an exact duplicate but is closely related.

Thanks, — bb

github-actions[bot] commented 3 years ago

Hi team! It seems this post is a duplicate, but hasn’t been marked as such. Please post a comment w/ Duplicate of #123(no final .) to do so. See GH docs for more info.

Thanks, — bb

wooorm commented 3 years ago

Duplicate of #21