How to use the @mdx-js/util.isComment function in @mdx-js/util

To help you get started, we’ve selected a few @mdx-js/util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mdx-js / mdx / packages / mdx / md-ast-to-mdx-ast.js View on Github external
visit(tree, 'jsx', node => {
    if (isComment(node.value)) {
      node.type = 'comment'
      node.value = getCommentContents(node.value)
    }
  })

@mdx-js/util

Deprecated: this package is no longer maintained.

MIT
Latest version published 2 months ago

Package Health Score

69 / 100
Full package analysis

Similar packages