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 8a37cc7
Show file tree
Hide file tree
Showing 4 changed files with 219 additions and 84 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": "^4.1.2",
"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',
},
],
})
Loading

0 comments on commit 8a37cc7

Please sign in to comment.