@nerox_dev/remark-entity-chips 0.2.3 → 0.2.5
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 +1 -36
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Transform entity mentions into rich, visual chips in Markdown. Works with Astro, Next.js, Docusaurus, and any remark-based pipeline.
|
|
4
4
|
|
|
5
|
-
[Live Demo (Astro)](https://entity-chips-demo-astro.pages.dev/)
|
|
5
|
+
[Live Demo (Astro)](https://entity-chips-demo-astro.pages.dev/) | [Live Demo (Next.js)](https://entity-chips-demo-nextjs.pages.dev/)
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -128,41 +128,6 @@ export default defineConfig({
|
|
|
128
128
|
});
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
### Next.js
|
|
132
|
-
|
|
133
|
-
```js
|
|
134
|
-
// next.config.mjs
|
|
135
|
-
import createMDX from "@next/mdx";
|
|
136
|
-
import entityChips from "@nerox_dev/remark-entity-chips";
|
|
137
|
-
|
|
138
|
-
const withMDX = createMDX({
|
|
139
|
-
options: {
|
|
140
|
-
remarkPlugins: [entityChips],
|
|
141
|
-
},
|
|
142
|
-
});
|
|
143
|
-
|
|
144
|
-
export default withMDX({});
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
### Docusaurus
|
|
148
|
-
|
|
149
|
-
```js
|
|
150
|
-
// docusaurus.config.js
|
|
151
|
-
const entityChips = require("@nerox_dev/remark-entity-chips").default;
|
|
152
|
-
|
|
153
|
-
module.exports = {
|
|
154
|
-
presets: [
|
|
155
|
-
[
|
|
156
|
-
"classic",
|
|
157
|
-
{
|
|
158
|
-
docs: { remarkPlugins: [entityChips] },
|
|
159
|
-
blog: { remarkPlugins: [entityChips] },
|
|
160
|
-
},
|
|
161
|
-
],
|
|
162
|
-
],
|
|
163
|
-
};
|
|
164
|
-
```
|
|
165
|
-
|
|
166
131
|
## Configuration
|
|
167
132
|
|
|
168
133
|
```js
|