JSPM

Found 216 results for hast

hast-util-whitespace

hast utility to check if a node is inter-element whitespace

  • v3.0.0
  • 97.74
  • Published

remark-rehype

remark plugin that turns markdown into HTML to support rehype

  • v11.1.2
  • 94.51
  • Published

hast-util-to-text

hast utility to get the plain-text value of a node according to the `innerText` algorithm

  • v4.0.2
  • 93.60
  • Published

hast-util-raw

hast utility to reparse a tree

  • v9.1.0
  • 93.54
  • Published

hast-util-is-element

hast utility to check if a node is a (certain) element

  • v3.0.0
  • 91.86
  • Published

hastscript

hast utility to create trees

  • v9.0.1
  • 91.34
  • Published

hast-util-to-estree

hast utility to transform to estree (JavaScript AST) JSX

  • v3.1.3
  • 88.78
  • Published

hast-util-to-string

hast utility to get the plain-text value of a node

  • v3.0.1
  • 88.64
  • Published

hast-util-to-jsx-runtime

hast utility to transform to preact, react, solid, svelte, vue, etc

  • v2.3.6
  • 88.15
  • Published

hast-util-embedded

hast utility to check if a node is an embedded element

  • v3.0.0
  • 86.45
  • Published

rehype-recma

recma plugin to transform HTML (hast) to JS (estree)

  • v1.0.0
  • 84.66
  • Published

rehype-external-links

rehype plugin to automatically add `target` and `rel` attributes to external links

  • v3.0.0
  • 84.51
  • Published

rehype-highlight

rehype plugin to highlight code blocks with lowlight (highlight.js)

  • v7.0.2
  • 77.95
  • Published

rehype-katex

rehype plugin to transform inline and block math with KaTeX

  • v7.0.1
  • 77.76
  • Published

hast-util-select

hast utility for `querySelector`, `querySelectorAll`, and `matches`

  • v6.0.4
  • 76.95
  • Published

rehype-remark

rehype plugin to transform to remark

  • v10.0.1
  • 76.80
  • Published

hast-util-phrasing

hast utility to check if a node is phrasing content

  • v3.0.1
  • 75.89
  • Published

rehype-react

rehype plugin to transform to React

  • v8.0.0
  • 70.70
  • Published

rehype-class-names

A utility plugin to use with rehype that adds class names to HAST (html tree)

  • v2.0.0
  • 69.91
  • Published

rehype-mathjax

rehype plugin to transform inline and block math with MathJax

  • v7.1.0
  • 69.65
  • Published

rehype-mdx-code-props

A rehype MDX plugin for interpreting markdown code meta as props

  • v3.0.1
  • 67.09
  • Published

hast-util-to-dom

hast utility to transform to the DOM

  • v4.0.1
  • 65.50
  • Published

remark-directive-rehype

Remark plugin to enable Markdown directives to be parsed as HTML.

  • v0.4.2
  • 65.49
  • Published

rehype-retext

rehype plugin to transform to retext

  • v5.0.1
  • 64.03
  • Published

hast-util-truncate

hast utility to truncate the tree to a certain number of characters

  • v2.0.0
  • 62.92
  • Published

rehype-github-alerts

rehype plugin to create alerts (admonitions/callouts)

  • v4.1.1
  • 62.44
  • Published

hast-util-excerpt

hast utility to excerpt the tree to a comment

  • v2.0.0
  • 59.26
  • Published

rehype-mdx-title

A rehype MDX plugin for exposing the page title

  • v3.2.0
  • 59.05
  • Published

rehype-document

rehype plugin to wrap a document around a fragment

  • v7.0.3
  • 57.53
  • Published

rehype-unwrap-images

rehype plugin to remove the wrapping paragraph (`<p>`) for images (`<img>`)

  • v1.0.0
  • 55.17
  • Published

hast-util-heading

hast utility to check if a node is a heading element

  • v3.0.0
  • 54.97
  • Published

rehype-urls

Rehype plugin to rewrite URLs of `href` and `src` attributes

  • v1.2.0
  • 54.82
  • Published

rehype-highlight-code-lines

Rehype plugin to add line numbers to code blocks and allow highlighting of desired code lines

  • v1.1.5
  • 54.28
  • Published

rehype-starry-night

rehype plugin to highlight code with `starry-night`

  • v2.2.0
  • 53.01
  • Published

@starptech/hast-util-from-webparser

Produce [HAST](https://github.com/syntax-tree/hast) compatible AST from [Webparser](https://github.com/Prettyhtml/prettyhtml/tree/master/packages/webparser)

    • v0.10.0
    • 48.71
    • Published

    rehype-shiki

    rehype plugin to highlight code blocks with shiki

    • v0.0.9
    • 43.32
    • Published

    rehype-shift-heading

    rehype plugin to change the rank (depth, level) of headings

    • v2.0.0
    • 41.37
    • Published

    rehype-meta

    rehype plugin to add metadata to the head of a document

    • v4.0.1
    • 40.66
    • Published

    rehype-callouts

    Rehype plugin for processing and rendering blockquote-based callouts (admonitions/alerts).

    • v2.1.2
    • 39.68
    • Published

    rehype-pre-language

    Rehype plugin to add language information as a property to pre element

    • v1.1.4
    • 39.14
    • Published

    rehype-slug-anchor-sectionize

    rehype plugin which wraps headings and their descendants in nested <section> elements and applies slugged anchor links to them.

    • v0.3.0
    • 38.85
    • Published

    rehype-infer-title-meta

    rehype plugin to infer file metadata from the main title of a document

    • v2.0.0
    • 35.33
    • Published

    @m2d/react-markdown

    A modern, SSR-friendly React Markdown renderer that preserves the MDAST tree for reuse (e.g., mdast2docx), supports full JSX children, unified plugins, and component overrides.

    • v1.0.0
    • 34.62
    • Published

    rehype-vue

    Plugin to convert HAST to Vue

    • v1.0.5
    • 33.07
    • Published

    rehype-twoslash

    rehype plugin to process TypeScript and JavaScript code with `twoslash` and highlight it with `starry-night`

    • v1.1.1
    • 32.60
    • Published

    hast-util-class-list

    Simulate the browser's classList API for HAST nodes

    • v2.0.1
    • 31.93
    • Published

    uniorg-rehype

    uniorg plugin to transform to rehype

    • v2.2.0
    • 31.14
    • Published

    rehype-picture

    rehype plugin to wrap images in pictures

    • v5.0.0
    • 30.65
    • Published

    rehype-extract-excerpt

    rehype plugin which attaches a document's first paragraph to the VFile

    • v0.4.0
    • 29.83
    • Published

    hast-util-to-tiptap

    hast utility to transform to be used by TipTap renderHTML

    • v0.0.1
    • 26.83
    • Published

    hast-util-from-text

    hast utility to set the plain-text value of a node according to the `innerText` algorithm

    • v3.0.0
    • 26.58
    • Published

    rehype-code-meta

    Rehype plugin to copy 'code.data.meta' to 'code.properties.metastring'

    • v1.0.2
    • 26.44
    • Published

    rehype-image-toolkit

    Rehype plugin to enhance markdown image syntax `![]()` and MDX media elements (`img`, `audio`, `video`) by styling and adding attributes, wrapping with figure and adding captions, auto-linking to originals, converting images to video/audio based on the fi

    • v1.0.3
    • 26.09
    • Published

    rehype-extract-meta

    Rehype plugin to extract meta data from an HTML document

    • v4.0.1
    • 24.96
    • Published

    tgast-util-to-hast

    A utility to convert tgast syntax tree to hast syntax tree.

    • v0.0.2
    • 24.87
    • Published

    xast-util-select

    Port of `(hast-util-select)[https://github.com/syntax-tree/hast-util-select]` for use with `xast` nodes.

    • v0.4.0
    • 22.99
    • Published

    unified-doc-parse-csv

    unified-doc parser to parse csv into a hast table node (RFC-4180 compliant)

    • v0.2.1
    • 21.78
    • Published

    webforai

    A library that provides a web interface for AI

    • v2.1.1
    • 21.55
    • Published

    hastscript-ns

    hast utility to create trees

    • v7.0.3
    • 21.27
    • Published

    hast-util-from-parse5-ns

    A fork of the original hast utility to transform from Parse5’s AST

    • v7.1.1
    • 20.94
    • Published

    @qingu/vue-email

    Fancy-ish emails using Vue components

    • v1.0.23
    • 20.36
    • Published

    rehype-link-processor

    rehype plugin to process links adding custom css class or attributes used by external or download links

    • v1.0.4
    • 20.36
    • Published

    unified-doc

    unified document APIs.

    • v3.3.2
    • 20.07
    • Published

    rehype-graphviz-diagram

    A Unified/Rehype Plugin that allows you transform graphviz codes into SVG diagram.

    • v1.0.0
    • 19.80
    • Published

    @zkochan/unified

    Text processing framework: Parse / Transform / Compile

    • v0.2.0
    • 18.64
    • Published

    xast-util-is-element

    Port of [hast-util-is-element](https://github.com/syntax-tree/hast-util-has-property) for [xast][xast]

    • v0.4.0
    • 16.36
    • Published

    hast-util-transparent

    hast utility to check if a node is a transparent element

    • v3.0.0
    • 16.31
    • Published

    notion2hast

    Notion blocks to hast

    • v0.1.4
    • 16.03
    • Published

    @xmark/core

    Markdown content tool powered by transformer and styling plugins

    • v0.24.0
    • 15.51
    • Published

    xast-util-has-attribute

    Port of [hast-util-has-property](https://github.com/syntax-tree/hast-util-has-property) for [xast][xast]

    • v0.3.0
    • 15.22
    • Published

    eleventy-hast-jsx

    Custom Eleventy template language for JSX

    • v0.3.5
    • 14.46
    • Published

    mdx-render

    A modern, SSR-friendly React Markdown renderer that preserves the MDAST tree for reuse (e.g., mdast2docx), supports full JSX children, unified plugins, and component overrides.

    • v1.0.0
    • 13.90
    • Published

    unist-util-ancestor

    Unist utility for finding the closest common ancestor for multiple nodes

    • v1.4.3
    • 13.65
    • Published

    @mdast2docx/jsx

    A modern, SSR-friendly React Markdown renderer that preserves the MDAST tree for reuse (e.g., mdast2docx), supports full JSX children, unified plugins, and component overrides.

    • v1.0.0
    • 13.64
    • Published

    mich-to-html

    Tiny and naive implementation of rendering HAST-compliant virtual dom trees to HTML string, just in ~420 bytes.

    • v0.1.6
    • 13.10
    • Published

    @m2d/jsx

    A modern, SSR-friendly React Markdown renderer that preserves the MDAST tree for reuse (e.g., mdast2docx), supports full JSX children, unified plugins, and component overrides.

    • v1.0.0
    • 12.81
    • Published

    @md2docx/jsx

    A modern, SSR-friendly React Markdown renderer that preserves the MDAST tree for reuse (e.g., mdast2docx), supports full JSX children, unified plugins, and component overrides.

    • v1.0.0
    • 12.62
    • Published

    rehype-mdx-toc

    A rehype plugin to create the table of contents and convert it into MDX exports

    • v1.1.0
    • 12.16
    • Published

    @md2docx/react-markdown

    A modern, SSR-friendly React Markdown renderer that preserves the MDAST tree for reuse (e.g., mdast2docx), supports full JSX children, unified plugins, and component overrides.

    • v1.0.0
    • 11.77
    • Published

    hast-util-noddity

    Hast extension to parse noddity flavored text within HTML.

    • v1.0.1
    • 11.38
    • Published

    rehype-shiki-reloaded

    Rehype plugin to highlight code blocks with shiki, with dark mode.

    • v0.0.11
    • 11.07
    • Published

    rehype-pager

    Make page sections divided by html hr tag. Useful when make slide with obsidian slide format.

    • v1.0.0
    • 11.01
    • Published

    rehype-wrap-sibling

    Rehype plugin to wrap a selected element and its sibling in a container element.

    • v1.0.4
    • 10.66
    • Published

    @julyfun/rehype-typst

    rehype plugin to transform inline and block math with Typst and KaTeX

    • v0.1.1
    • 9.97
    • Published

    @mgtd/rehype-shiki

    rehype plugin to highlight code blocks with shiki

    • v0.0.14
    • 9.89
    • Published

    rehype-template

    Rehype plugin to wrap contents with htm template

    • v0.3.0
    • 9.70
    • Published

    @ipikuka/plugins

    The collection of useful remark, rehype, recma, mdx plugins and rehype handlers for markdown / MDX

    • v1.0.2
    • 8.24
    • Published

    rehype-mathjax-dumi-tmp

    rehype plugin to transform inline and block math with MathJax

    • v3.1.1-0
    • 8.07
    • Published

    @accuser/svelte-hast

    Transform [Hast](https://github.com/syntax-tree/hast) into Svelte components.

    • v0.3.0
    • 7.84
    • Published

    hast-util-labelable

    hast utility to check whether a node is labelable

    • v3.0.0
    • 7.29
    • Published

    rehype-smiles

    rehype plugin wich convert SMILES molecule to SVG

    • v1.0.3
    • 7.25
    • Published

    rehype-wordspan

    Wraps words in htag elements with span tags and does basic parts of speech parsing.

    • v1.2.0
    • 6.36
    • Published

    @wayowe/hast-util-from-webparser

    Produce [HAST](https://github.com/syntax-tree/hast) compatible AST from [Webparser](https://github.com/Prettyhtml/prettyhtml/tree/master/packages/webparser)

      • v0.10.3
      • 6.36
      • Published

      rehype-slugs

      rehype plugin to add ids to headings and output.

      • v0.0.5
      • 6.36
      • Published

      rehype-mathjax-2

      rehype plugin to transform inline and block math with MathJax

      • v4.0.3
      • 6.25
      • Published

      rehype-jsoncanvas

      rehype plugin to render inline json-canvas elements

      • v0.1.7
      • 6.22
      • Published

      rehype-typst2

      rehype plugin to transform inline and block math with Typst and KaTeX

      • v0.1.1
      • 6.02
      • Published

      @breadio/vue

      Vue components for Breadio.

      • v0.0.2-beta.3
      • 5.33
      • Published

      mdast-util-hast

      Utilities to work with hast attributes in mdast

      • v0.0.1
      • 5.19
      • Published

      hast-util-to-html-ns

      A fork of the original hast utility that serializes an AST to HTML

      • v8.0.4
      • 4.03
      • Published

      hast-util-sectioning

      hast utility to check if a node is a sectioning element

      • v3.0.0
      • 4.01
      • Published

      mdx-renderer

      A modern, SSR-friendly React Markdown renderer that preserves the MDAST tree for reuse (e.g., mdast2docx), supports full JSX children, unified plugins, and component overrides.

      • v0.1.1
      • 3.92
      • Published

      inferno-mark

      Create mark(up/down) components similar to `styled-components`.

      • v1.0.2
      • 2.50
      • Published

      @breadio/markdown

      Markdown parser and renderer for Breadio.

      • v0.0.2-beta.3
      • 0.00
      • Published

      unist-util-visit-siblings-first

      Breadth-first traversal for unist ASTs — visits siblings before descending into children

      • v1.0.0-alpha.5
      • 0.00
      • Published

      rehype-github-dir

      rehype plugin to add `dir=auto` to elements

      • v1.0.0
      • 0.00
      • Published

      rehype-code-ltr

      rehype plugin add dir='ltr' attribute

      • v0.0.3
      • 0.00
      • Published

      rehype-katex-browser

      rehype plugin to transform inline and block math with KaTeX (only renders in browser)

      • v1.0.0
      • 0.00
      • Published