@markdoc/markdoc 0.5.14 → 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 +18 -1
- package/dist/index.js +635 -555
- package/dist/index.js.map +4 -4
- package/dist/index.mjs +635 -555
- package/dist/index.mjs.map +4 -4
- package/dist/react.js.map +1 -1
- package/dist/src/ast/base.d.ts.map +1 -1
- package/dist/src/ast/node.d.ts.map +1 -1
- package/dist/src/renderers/react/react.d.ts +1 -1
- package/dist/src/renderers/react/react.d.ts.map +1 -1
- package/dist/src/renderers/react/static.d.ts.map +1 -1
- package/dist/src/schema.d.ts.map +1 -1
- package/dist/src/validator.d.ts.map +1 -1
- package/package.json +4 -3
- package/src/ast/base.test.ts +120 -0
- package/src/ast/base.ts +12 -7
- package/src/ast/node.test.ts +81 -0
- package/src/ast/node.ts +30 -11
- package/src/ast/walk.test.ts +283 -0
- package/src/formatter.test.ts +27 -0
- package/src/formatter.ts +1 -1
- package/src/renderers/react/react.test.ts +20 -0
- package/src/renderers/react/react.ts +1 -1
- package/src/renderers/react/static.ts +2 -6
- package/src/schema.ts +4 -2
- package/src/validator.ts +30 -3
package/README.md
CHANGED
|
@@ -46,6 +46,18 @@ return Markdoc.renderers.react(content, React);
|
|
|
46
46
|
|
|
47
47
|
Check out [our docs](https://markdoc.dev/docs) for more guidance on how to use Markdoc.
|
|
48
48
|
|
|
49
|
+
### Agent skills
|
|
50
|
+
|
|
51
|
+
The [Markdoc agent plugin](https://github.com/markdoc/markdoc/tree/main/plugins/markdoc)
|
|
52
|
+
provides `setup-markdoc`, `write-markdoc`, and `create-markdoc-tag` skills for
|
|
53
|
+
Codex and Claude Code. Install them through [skills.sh](https://skills.sh/docs/cli):
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
pnpm dlx skills add https://markdoc.dev
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
See the plugin README for marketplace installation and local testing.
|
|
60
|
+
|
|
49
61
|
### TypeScript
|
|
50
62
|
|
|
51
63
|
The public renderer types require `@types/react`, even when using only the
|
|
@@ -91,6 +103,7 @@ This repository uses pnpm workspaces and Turborepo:
|
|
|
91
103
|
|
|
92
104
|
- `packages/markdoc` contains the published `@markdoc/markdoc` library, its tests, and build configuration.
|
|
93
105
|
- `packages/next.js` contains the published `@markdoc/next.js` integration and its tests.
|
|
106
|
+
- `packages/cli` contains the published `@markdoc/cli` command-line tool and its tests.
|
|
94
107
|
- `apps/docs` contains the private documentation site deployed at [markdoc.dev](https://markdoc.dev).
|
|
95
108
|
- `packages/*` is the home for additional packages.
|
|
96
109
|
- `apps/*` is the home for applications.
|
|
@@ -106,7 +119,7 @@ Run these commands from the repository root:
|
|
|
106
119
|
Add release notes with `pnpm changeset`. See the [Changesets guide](.changeset/README.md)
|
|
107
120
|
for versioning and the release process.
|
|
108
121
|
|
|
109
|
-
Run `pnpm run check` for
|
|
122
|
+
Run `pnpm run check` for the workspace checks. Turborepo builds workspace dependencies
|
|
110
123
|
first and caches build outputs in each package's `dist` directory.
|
|
111
124
|
|
|
112
125
|
To work on Markdoc alone, use `pnpm --filter @markdoc/markdoc test` or
|
|
@@ -125,6 +138,10 @@ Run `pnpm dev --filter=@markdoc/docs` to develop the documentation site using th
|
|
|
125
138
|
local packages. See the [app README](apps/docs/README.md) for environment and
|
|
126
139
|
deployment setup.
|
|
127
140
|
|
|
141
|
+
The projects in `apps/docs/examples/` have independent pnpm workspaces and
|
|
142
|
+
lockfiles. From an example's directory, run `pnpm install --frozen-lockfile`,
|
|
143
|
+
then follow its README to start the app. CI builds each example separately.
|
|
144
|
+
|
|
128
145
|
## Code of conduct
|
|
129
146
|
|
|
130
147
|
This project has adopted the Stripe [Code of conduct](.github/CODE_OF_CONDUCT.md).
|