Integrate Markdoc library with Keystatic CMS.

The commit introduces the '@markdoc/markdoc' library to the Keystatic CMS. It modifies related functions and components such as 'KeystaticDocumentRenderer' and 'keystatic-client' to transform and render content using Markdoc. Additionally, the commit refactors 'keystatic.config.ts' file for more legible content field setup and adds related dependencies in the package.
This commit is contained in:
giancarlo
2024-05-07 15:33:25 +07:00
parent 05255cbebe
commit 171a404379
5 changed files with 65 additions and 44 deletions

9
pnpm-lock.yaml generated
View File

@@ -426,6 +426,9 @@ importers:
'@keystatic/next':
specifier: 5.0.0
version: 5.0.0(@keystatic/core@0.5.14)(next@14.2.3)(react-dom@18.3.1)(react@18.3.1)
'@markdoc/markdoc':
specifier: ^0.4.0
version: 0.4.0(@types/react@18.3.1)(react@18.3.1)
devDependencies:
'@kit/cms':
specifier: workspace:^
@@ -445,6 +448,12 @@ importers:
'@types/node':
specifier: ^20.12.8
version: 20.12.10
'@types/react':
specifier: ^18.3.1
version: 18.3.1
react:
specifier: 18.3.1
version: 18.3.1
zod:
specifier: ^3.23.6
version: 3.23.6