Skip to content

Commit

Permalink
chore: add markdown plugin back
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Sep 9, 2024
1 parent f44786c commit 5d30744
Show file tree
Hide file tree
Showing 4 changed files with 112 additions and 6 deletions.
1 change: 1 addition & 0 deletions dev/test-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
"rxjs": "^7.8.0",
"sanity": "workspace:*",
"sanity-plugin-hotspot-array": "^2.0.0",
"sanity-plugin-markdown": "^5.0.0",
"sanity-plugin-media": "^2.3.1",
"sanity-plugin-mux-input": "^2.2.1",
"styled-components": "^6.1.11"
Expand Down
2 changes: 2 additions & 0 deletions dev/test-studio/sanity.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {defineConfig, definePlugin, type WorkspaceOptions} from 'sanity'
import {presentationTool} from 'sanity/presentation'
import {structureTool} from 'sanity/structure'
import {imageHotspotArrayPlugin} from 'sanity-plugin-hotspot-array'
import {markdownSchema} from 'sanity-plugin-markdown'
import {media} from 'sanity-plugin-media'
import {muxInput} from 'sanity-plugin-mux-input'

Expand Down Expand Up @@ -144,6 +145,7 @@ const sharedSettings = definePlugin({
errorReportingTestPlugin(),
tsdoc(),
media(),
markdownSchema(),
],
})

Expand Down
10 changes: 5 additions & 5 deletions dev/test-studio/schema/externalPlugins/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export default defineType({
name: 'title',
title: 'Title',
},
// {
// type: 'markdown',
// name: 'markdown',
// title: 'Markdown',
// },
{
type: 'markdown',
name: 'markdown',
title: 'Markdown',
},
],
})
105 changes: 104 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5d30744

Please sign in to comment.