---
url: /api/renderers/rehype/src.md
---
[pantoken-root](../../../index.md) / 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](../../../../compatibility)

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

* [RehypeOptions](interfaces/RehypeOptions.md)

## Functions

* [rehypePantokenIcons](functions/rehypePantokenIcons.md)

## References

### default

Renames and re-exports [rehypePantokenIcons](functions/rehypePantokenIcons.md)
