{"repo":"remarkjs/remark-rehype","free":true,"listed":false,"github":"https://github.com/remarkjs/remark-rehype","clone":"git clone https://github.com/remarkjs/remark-rehype.git","description":"plugin that turns markdown into HTML to support rehype","language":"JavaScript","stars":359,"topics":["remark","rehype","markdown","html","hast","mdast"],"license":"MIT","category":"productivity","readme_excerpt":"remark-rehype [![Build][badge-build-image]][badge-build-url] [![Coverage][badge-coverage-image]][badge-coverage-url] [![Downloads][badge-downloads-image]][badge-downloads-url] [![Size][badge-size-image]][badge-size-url] [remark][github-remark] plugin that turns markdown into HTML to support [rehype][github-rehype] . Contents What is this? When should I use this? Install Use API defaultFootnoteBackContent(referenceIndex, rereferenceIndex) defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) defaultHandlers [ unified().use(remarkRehype[, destination][, options]) ](#unifieduseremarkrehype-destination-options) Options Examples Example: supporting HTML in markdown naïvely Example: supporting HTML in markdown properly Example: footnotes in languages other than English HTML CSS Syntax tree Types Compatibility Security Related Contribute License What is this? This package is a [unified][github-unified] ([remark][github-remark]) plugin that switches from remark (the markdown ecosystem) to rehype (the HTML ecosystem). It does this by transforming the current markdown (mdast) syntax tree into an HTML (hast) syntax tree. remark plugins deal with mdast and rehype plugins deal with hast, so plugins used after remark-rehype have to be rehype plugins. The reason that there are different ecosystems for markdown and HTML is that turning markdown into HTML is, while frequently needed, not the only purpose of markdown. Checking (linting) and formatting markdown are also common use cases fo","default_branch":null,"files":null,"tree":[],"storefront":"/r/remarkjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/remarkjs/remark-rehype/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}