Skip to content

Commit

Permalink
chore: add markdown plugin back (#7475)
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan authored Dec 9, 2024
1 parent 583bb6f commit a7ed9be
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 5 deletions.
1 change: 1 addition & 0 deletions dev/test-studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,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',
},
],
})
93 changes: 93 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit a7ed9be

Please sign in to comment.