rehype-instui-markdown 0.0.8 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,7 +35,9 @@ The background is <span class="color-code" data-color="#1f2937">#1f2937</span> a
|
|
|
35
35
|
|
|
36
36
|
### `rehypeInstUIIconTokens`
|
|
37
37
|
|
|
38
|
-
Wraps `:iconName:` and `:iconName|color:` tokens in `<span class="icon-token" data-icon="…">` elements so a downstream renderer can swap them for
|
|
38
|
+
Wraps `:iconName:` and `:iconName|color:` tokens in `<span class="icon-token" data-icon="…">` elements so a downstream renderer can swap them for icons. Skips any content inside `<pre>` or `<code>` blocks.
|
|
39
|
+
|
|
40
|
+
This plugin is provider-agnostic: it does not decide whether a token maps to InstUI, SimpleIcons, or another icon source. Provider selection and fallback behavior are handled by the consuming renderer.
|
|
39
41
|
|
|
40
42
|
```ts
|
|
41
43
|
import { rehypeInstUIIconTokens } from "rehype-instui-markdown";
|