Skip to content

pantoken-root / rehype

rehype ​

Compatibility ​

Target: rehype. Current format: HAST + raw SVG. Minimum host version: 13.0.0. Tested through 13.0.2. Newer releases require review.

Full compatibility matrix

Experimental

@pantoken/rehype — render :icon: codes as inline SVG.

The plugin walks hast text nodes and replaces :code: tokens with an inline SVG element, resolving each code through a chain: any explicit resolve, then the built-in @pantoken/icons set, then plugin rehype resolvers. It ports rehype-instui-markdown onto the shared icon manifest.

Interfaces ​

Functions ​

References ​

default ​

Renames and re-exports rehypePantokenIcons