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 — renderiza códigos :icon: como SVG inline.

O plugin percorre os nós de texto do hast e substitui tokens :code: por um elemento SVG inline, resolvendo cada código através de uma cadeia: primeiro os resolvedores de plugin rehype, depois qualquer resolve explícito, e em seguida o conjunto embutido @pantoken/icons. Ele integra rehype-instui-markdown ao manifesto de ícones compartilhado.

Interfaces ​

Funções ​

Referências ​

default ​

Renomeia e reexporta rehypePantokenIcons