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

Does not seem to remove tables #22

Closed
donorman opened this issue Jan 22, 2021 · 2 comments
Closed

Does not seem to remove tables #22

donorman opened this issue Jan 22, 2021 · 2 comments
Labels
🙋 no/question This does not need any changes

Comments

@donorman
Copy link

var remark = require('remark')
var strip = require('strip-markdown')

remark()
  .use(strip)
  .process('|a|s||-|-||a|a|', function(err, file) {
    if (err) throw err
    console.log(String(file))
  })
@donorman donorman added 🐛 type/bug This is a problem 🙉 open/needs-info This needs some more info labels Jan 22, 2021
@ChristianMurphy
Copy link
Member

Please fill out the issue template when opening issues.
And also note that, when using GitHub flavored markdown features, like tables, remark-gfm is needed.
https://codesandbox.io/s/strip-markdown-tables-6z1oe

@ChristianMurphy ChristianMurphy added 🙋 no/question This does not need any changes and removed 🐛 type/bug This is a problem 🙉 open/needs-info This needs some more info labels Jan 22, 2021
@donorman
Copy link
Author

Thanks a lot! Got it working using remark-gfm. Sorry about the template. Good work, keep it up, really appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 no/question This does not need any changes
Development

No branches or pull requests

2 participants