Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 19, 2024 via pnpm

remark-parse 11.0.0

remark plugin to add support for parsing markdown input
Package summary
Share
0
issues
1
license
42
MIT
Package created
12 Jun 2016
Version published
18 Sep 2023
Maintainers
3
Total deps
42
Direct deps
4
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
42 Packages, Including:
@types/debug@4.1.12
@types/mdast@4.0.4
@types/ms@0.7.34
@types/unist@3.0.2
bail@2.0.2
character-entities@2.0.2
debug@4.3.4
decode-named-character-reference@1.0.2
dequal@2.0.3
devlop@1.1.0
extend@3.0.2
is-plain-obj@4.1.0
mdast-util-from-markdown@2.0.0
mdast-util-to-string@4.0.0
micromark-core-commonmark@2.0.1
micromark-factory-destination@2.0.0
micromark-factory-label@2.0.0
micromark-factory-space@2.0.0
micromark-factory-title@2.0.0
micromark-factory-whitespace@2.0.0
micromark-util-character@2.1.0
micromark-util-chunked@2.0.0
micromark-util-classify-character@2.0.0
micromark-util-combine-extensions@2.0.0
micromark-util-decode-numeric-character-reference@2.0.1
micromark-util-decode-string@2.0.0
micromark-util-encode@2.0.0
micromark-util-html-tag-name@2.0.0
micromark-util-normalize-identifier@2.0.0
micromark-util-resolve-all@2.0.0
micromark-util-sanitize-uri@2.0.0
micromark-util-subtokenize@2.0.1
micromark-util-symbol@2.0.0
micromark-util-types@2.0.0
micromark@4.0.0
ms@2.1.2
remark-parse@11.0.0
trough@2.2.0
unified@11.0.4
unist-util-stringify-position@4.0.0
vfile-message@4.0.2
vfile@6.0.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of remark-parse 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@types/mdast4.0.428.74 kBMIT
prod
mdast-util-from-markdown2.0.020.52 kBMIT
prod
micromark-util-types2.0.010.46 kBMIT
prod
unified11.0.430.15 kBMIT
prod

Visualizations

Frequently Asked Questions

What does remark-parse do?

Remark-parse is a highly capable JavaScript plugin for the unified system and part of the Remark ecosystem. It enhances unified by facilitating markdown parsing and transforming it into a syntax tree. This allows developers to handle markdown content flexibly and employ syntax extensions to add advanced features.

How do you use remark-parse?

To install and use remark-parse, follow these steps:

  1. Install remark-parse using npm (Node.js 16 or higher required):
npm install remark-parse
  1. Import and use it within your JavaScript code.

Here's an example :

import rehypeStringify from 'rehype-stringify'
import remarkGfm from 'remark-gfm'
import remarkParse from 'remark-parse'
import remarkRehype from 'remark-rehype'
import {unified} from 'unified'

const doc = `
# Mercury

**Mercury** is the first planet from the [Sun](https://en.wikipedia.org/wiki/Sun)
and the smallest planet in the Solar System.
`

const file = await unified()
  .use(remarkParse)
  .use(remarkGfm)
  .use(remarkRehype)
  .use(rehypeStringify)
  .process(doc)

console.log(String(file))

Running this script will transform your markdown into HTML.

Where are the remark-parse docs?

The official documentation of remark-parse can be found on GitHub at https://github.com/remarkjs/remark/tree/main/packages/remark-parse. The repository's README file provides a detailed explanation about the plugin and its usage. Its vast ecosystem, along with the plethora of examples provided, make it an instrumental tool in markdown handling.