unist-util-visit
unist utility to visit nodes- 85%
- 84m
mdast-util-to-hast
mdast utility to transform to hast- 82%
- 45m
hastscript
hast utility to create trees- 82%
- 38m
hast-util-parse-selector
hast utility to create an element from a simple CSS selector- 81%
- 36m
hast-util-from-parse5
hast utility to transform from Parse5’s AST- 81%
- 25m
hast-util-raw
hast utility to reparse a tree- 80%
- 21m
hast-util-to-parse5
hast utility to transform hast to Parse5’s AST- 80%
- 21m
remark-rehype
remark plugin that turns markdown into HTML to support rehype- 78%
- 31m
hast-util-whitespace
hast utility to check if a node is inter-element whitespace- 77%
- 34m
hast-util-to-html
hast utility to serialize to HTML- 75%
- 13m
hast-util-is-element
hast utility to check if a node is a (certain) element- 75%
- 15m
hast-util-sanitize
hast utility to sanitize nodes- 74%
- 4.3m
hast-util-to-string
hast utility to get the plain-text value of a node- 74%
- 9.5m
hast-util-has-property
hast utility to check if a node has a property- 73%
- 4.9m
hast-util-to-text
hast utility to get the plain-text value of a node according to theinnerText
algorithm- 73%
- 6.9m
hast-util-heading-rank
hast utility to get the rank (or depth, level) of headings- 72%
- 6.2m
rehype-react
rehype plugin to transform to React- 72%
- 969k
hast-util-select
hast utility forquerySelector
,querySelectorAll
, andmatches
- 72%
- 2.4m
hast-util-to-estree
hast utility to transform to estree (JavaScript AST) JSX- 72%
- 8.7m
hast-util-is-body-ok-link
hast utility to check if a link element is “Body OK”- 71%
- 1.8m
hast-util-to-mdast
hast utility to transform to mdast- 70%
- 1.1m
hast-util-from-dom
hast utility to create a tree from the DOM- 70%
- 3m
hast-util-phrasing
hast utility to check if a node is phrasing content- 70%
- 1.8m
rehype-katex
rehype plugin to transform inline and block math with KaTeX- 70%
- 2.5m
hast-util-is-conditional-comment
hast utility to check if a node is a conditional comment- 69%
- 291k
hast-util-embedded
hast utility to check if a node is an embedded element- 69%
- 2.2m
rehype-remark
rehype plugin to transform to remark- 69%
- 906k
rehype-mathjax
rehype plugin to transform inline and block math with MathJax- 69%
- 317k
hast-util-from-string
hast utility to set the plain-text value of a node- 68%
- 95k
hast-util-is-css-link
hast utility to check if an element is a css link- 68%
- 91k
hast-util-is-javascript
hast utility to check if an element is a JavaScript script- 68%
- 92k
hast-util-is-css-style
hast utility to check if an element is a css style- 68%
- 100k
hast-util-to-nlcst
hast utility to transform to nlcst- 68%
- 181k
rehype-external-links
rehype plugin to automatically addtarget
andrel
attributes to external links- 68%
- 4.7m
hast-util-heading
hast utility to check if a node is a heading element- 68%
- 22k
hast-util-find-and-replace
hast utility to find and replace text in a tree- 68%
- 474k
hast-util-to-dom
hast utility to transform to the DOM- 68%
- 46k
rehype-retext
rehype plugin to transform to retext- 67%
- 178k
hast-util-reading-time
hast utility to estimate the reading time- 67%
- 8.9k
rehype-document
rehype plugin to wrap a document around a fragment- 67%
- 67k
hast-util-from-selector
hast utility to parse CSS selectors to hast nodes- 67%
- 26k
hast-util-to-xast
hast utility to transform to xast- 67%
- 27k
hast-util-transparent
hast utility to check if a node is a transparent element- 66%
- 61
hast-util-sectioning
hast utility to check if a node is a sectioning element- 66%
- 8
hast-util-assert
hast utility to assert nodes- 66%
- 100
hast-util-labelable
hast utility to check whether a node is labelable- 66%
- 13
hast-util-classnames
hast utility to merge class names together- 66%
- 306k
hast-util-from-text
hast utility to set the plain-text value of a node according to theinnerText
algorithm- 66%
- 979
hast-util-shift-heading
hast utility to change heading rank (or depth, level)- 66%
- 3.6k
hast-util-script-supporting
hast utility to check if a node is a script-supporting element- 66%
- 29
rehype-meta
rehype plugin to add metadata to the head of a document- 66%
- 16k
rehype-picture
rehype plugin to wrap images in pictures- 65%
- 343
rehype-infer-reading-time-meta
rehype plugin to infer reading time as file metadata from the document- 65%
- 8.7k
unist-util-ancestor
Unist utility for finding the closest common ancestor for multiple nodes- 65%
- 56
rehype-shift-heading
rehype plugin to change the rank (depth, level) of headings- 65%
- 3.5k
rehype-extract-meta
Rehype plugin to extract meta data from an HTML document- 65%
- 231
rehype-infer-description-meta
rehype plugin to infer file metadata from the document- 65%
- 54k
rehype-infer-title-meta
rehype plugin to infer file metadata from the main title of a document- 65%
- 688
hast-util-interactive
hast utility to check if a node is interactive- 65%
- 46k
hast-util-from-html
hast utility to parse from HTML- 65%
- 6.8m
hast-util-truncate
hast utility to truncate the tree to a certain number of characters- 64%
- 54k
hast-util-excerpt
hast utility to excerpt the tree to a comment- 64%
- 54k
remark-extract-toc
remark plugin to store table of contents- 62%
- 1.2k
unified-doc-react
react wrapper for unified-doc- 61%
- 33
unified-doc-dom
DOM APIs for unified-doc- 61%
- 27
unified-doc
unified document APIs.- 60%
- 178
hast-util-from-lezer
Render styled Lezer syntax trees to hast- 57%
- 73k
remark-directive-rehype
Remark plugin to enable Markdown directives to be parsed as HTML.- 49%
- 118k
unified-doc-search-micromatch
unified-doc micromatch search algorithm.- 43%
- 76
unified-doc-types
unified-doc typescript typings.- 43%
- 4.4k
unified-doc-util-text-offsets
unified-doc hast utility to add text offsets to text nodes.- 43%
- 4.8k
rehype-shiki
rehype plugin to highlight code blocks with shiki- 42%
- 1.1k
unified-doc-util-mark
unified-doc hast util to mark text nodes.- 41%
- 4.4k
unified-doc-parse-csv
unified-doc parser to parse csv into a hast table node (RFC-4180 compliant)- 41%
- 97
rehype-highlight
rehype plugin to highlight code blocks with lowlight (highlight.js)- 23%
- 1.1m
Find other packages matching hast on npm