cudoc-nextra 0.4.0 → 0.6.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 +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -20,13 +20,13 @@ const mdxOptions = {
|
|
|
20
20
|
}
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
Keep the existing Nextra theme mappings and import `@cudoment/cudoc/styles.css` once. The explicit `syntax` setup needs no cudoc components. Nextra owns its TOC. For embedding, collect through the actual Nextra compiler, prepare embeds, and add `cudoc-remark/embed` to rendering.
|
|
23
|
+
Keep the existing Nextra theme mappings and import `@cudoment/cudoc/styles.css` once. The explicit `syntax` setup needs no cudoc components. Nextra owns its TOC. Nextra slugs every heading ID, so write anchors in lowercase letters, digits and hyphens to keep them as written. For embedding, collect through the actual Nextra compiler, prepare embeds, and add `cudoc-remark/embed` to rendering.
|
|
24
24
|
|
|
25
25
|
Choose `host`, `cudoc` or `both` independently for `headingAnchor`, `badge`, `tableCellList`, `callout` and `link`. The representative callout is `> [!NOTE] Title`. Authors do not register cudoc React components in the recommended setup. Syntax-only rendering needs no stored JSON; cross-document embedding requires document collection.
|
|
26
26
|
|
|
27
27
|
- [Usage guide](https://github.com/cudoment/cudoc/tree/main/docs/nextra.md) · [한국어 가이드](https://github.com/cudoment/cudoc/tree/main/docs/nextra.ko.md)
|
|
28
28
|
- [Markdown syntax](https://github.com/cudoment/cudoc/tree/main/docs/syntax.md)
|
|
29
29
|
- [Embedding](https://github.com/cudoment/cudoc/tree/main/docs/embedding.md)
|
|
30
|
-
- [Standalone HTML alongside a host](https://github.com/cudoment/cudoc/tree/main/docs/
|
|
30
|
+
- [Standalone HTML alongside a host](https://github.com/cudoment/cudoc/tree/main/docs/export.md#export-alongside-an-existing-site)
|
|
31
31
|
- [API reference](https://github.com/cudoment/cudoc/tree/main/docs/api-reference/README.md)
|
|
32
32
|
- [Runnable examples](https://github.com/cudoment/cudoc/tree/main/examples/README.md)
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAExE,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAA;AAElD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAS,kBAAuB,KAC/B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAqB,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAExE,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAA;AAElD;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,UAAS,kBAAuB,KAC/B,aAAqE,CAAA;AAExE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,YAAY,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,6 @@ import { createHostPlugins } from "cudoc-remark";
|
|
|
16
16
|
* Nextra prepends them to its own list, which is the order cudoc needs: the
|
|
17
17
|
* anchors have to exist before `remarkHeadings` reads heading ids.
|
|
18
18
|
*/
|
|
19
|
-
export const cudocRemarkPlugins = (options = {}) => createHostPlugins(options, "cudoc-nextra");
|
|
19
|
+
export const cudocRemarkPlugins = (options = {}) => createHostPlugins(options, "cudoc-nextra", "nextra");
|
|
20
20
|
export { promoteAnchorIds } from "cudoc-remark";
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,iBAAiB,EAA0B,MAAM,cAAc,CAAA;AAIxE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,UAA8B,EAAE,EACjB,EAAE,CAAC,iBAAiB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,iBAAiB,EAA0B,MAAM,cAAc,CAAA;AAIxE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,UAA8B,EAAE,EACjB,EAAE,CAAC,iBAAiB,CAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,CAAC,CAAA;AAExE,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cudoc-nextra",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Nextra adapter for cudoc: remark wiring and default components.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "git+https://github.com/cudoment/cudoc.git",
|
|
9
9
|
"directory": "packages/cudoc-nextra"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://github.com/cudoment/cudoc
|
|
11
|
+
"homepage": "https://github.com/cudoment/cudoc#readme",
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/cudoment/cudoc/issues"
|
|
14
14
|
},
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"clean": "rm -rf dist *.tsbuildinfo"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"cudoc-remark": "0.
|
|
49
|
+
"cudoc-remark": "0.6.0",
|
|
50
50
|
"unified": "^11.0.5"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|