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
I searched issues and couldn’t find anything (or linked relevant results below)
Affected packages and versions
"remark": "^14.0.2", "remark-gfm": "^3.0.1",
Link to runnable example
No response
Steps to reproduce
import {remark} from 'remark';
import slug from 'remark-slug';
import githubFlavored from 'remark-gfm';
import htmlPlugin from 'remark-html';
const getHtml = (content: string) => {
return remark()
.use(slug)
.use(githubFlavored)
.use(htmlPlugin, {sanitize: false})
.processSync(content)
.toString();
};
TIP:The following is the markdown file where I encountered the problem. I tried to check the file with lint-md and found no problem, but the page froze after parsing with the above function, which was initially attributed to the use of the 'remark-gfm 'plugin
check which version of node you are using, consider using the latest LTS (https://nodejs.org/en)
check if you have any other scripts on the page which could be causing it to freeze
Feel free to add a minimal reproducible example in a sandbox, like codesandbox or stackblitz, if you still believe this is a bug here.
For now I'm closing this out as it doesn't appear to be an issue here.
Initial checklist
Affected packages and versions
"remark": "^14.0.2", "remark-gfm": "^3.0.1",
Link to runnable example
No response
Steps to reproduce
TIP:The following is the markdown file where I encountered the problem. I tried to check the file with lint-md and found no problem, but the page froze after parsing with the above function, which was initially attributed to the use of the 'remark-gfm 'plugin
Expected behavior
Normal analysis
Actual behavior
Page stuck
Runtime
No response
Package manager
yarn 1
OS
macOS
Build and bundle tools
Webpack
The text was updated successfully, but these errors were encountered: