docusaurus-plugin-openapi-docs 0.0.0-690 → 0.0.0-692

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.
@@ -118,7 +118,7 @@ function createResponseExamples(responseExamples, mimeType) {
118
118
  value: `${exampleName}`,
119
119
  children: [
120
120
  (0, utils_2.guard)(exampleValue.summary, (summary) => [
121
- (0, utils_1.create)("p", {
121
+ (0, utils_1.create)("Markdown", {
122
122
  children: ` ${summary}`,
123
123
  }),
124
124
  ]),
@@ -134,7 +134,7 @@ function createResponseExamples(responseExamples, mimeType) {
134
134
  value: `${exampleName}`,
135
135
  children: [
136
136
  (0, utils_2.guard)(exampleValue.summary, (summary) => [
137
- (0, utils_1.create)("p", {
137
+ (0, utils_1.create)("Markdown", {
138
138
  children: ` ${summary}`,
139
139
  }),
140
140
  ]),
@@ -161,7 +161,7 @@ function createResponseExample(responseExample, mimeType) {
161
161
  value: `Example`,
162
162
  children: [
163
163
  (0, utils_2.guard)(responseExample.summary, (summary) => [
164
- (0, utils_1.create)("p", {
164
+ (0, utils_1.create)("Markdown", {
165
165
  children: ` ${summary}`,
166
166
  }),
167
167
  ]),
@@ -177,7 +177,7 @@ function createResponseExample(responseExample, mimeType) {
177
177
  value: `Example`,
178
178
  children: [
179
179
  (0, utils_2.guard)(responseExample.summary, (summary) => [
180
- (0, utils_1.create)("p", {
180
+ (0, utils_1.create)("Markdown", {
181
181
  children: ` ${summary}`,
182
182
  }),
183
183
  ]),
@@ -37,6 +37,7 @@ function createApiPageMD({ title, api: { deprecated, "x-deprecated-description":
37
37
  `import ResponseSamples from "@theme/ResponseSamples";\n`,
38
38
  `import SchemaItem from "@theme/SchemaItem";\n`,
39
39
  `import SchemaTabs from "@theme/SchemaTabs";\n`,
40
+ `import Markdown from "@theme/Markdown";\n`,
40
41
  `import OperationTabs from "@theme/OperationTabs";\n`,
41
42
  `import TabItem from "@theme/TabItem";\n\n`,
42
43
  (0, createHeading_1.createHeading)(title.replace(utils_1.lessThan, "<").replace(utils_1.greaterThan, ">")),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-openapi-docs",
3
3
  "description": "OpenAPI plugin for Docusaurus.",
4
- "version": "0.0.0-690",
4
+ "version": "0.0.0-692",
5
5
  "license": "MIT",
6
6
  "keywords": [
7
7
  "openapi",
@@ -60,5 +60,5 @@
60
60
  "engines": {
61
61
  "node": ">=14"
62
62
  },
63
- "gitHead": "68d6bc5c3e39aba589cdebe0189820179be60c18"
63
+ "gitHead": "ae591d3980bdd69aae8cd4d3475b29edce047a68"
64
64
  }
@@ -127,7 +127,7 @@ export function createResponseExamples(
127
127
  value: `${exampleName}`,
128
128
  children: [
129
129
  guard(exampleValue.summary, (summary) => [
130
- create("p", {
130
+ create("Markdown", {
131
131
  children: ` ${summary}`,
132
132
  }),
133
133
  ]),
@@ -143,7 +143,7 @@ export function createResponseExamples(
143
143
  value: `${exampleName}`,
144
144
  children: [
145
145
  guard(exampleValue.summary, (summary) => [
146
- create("p", {
146
+ create("Markdown", {
147
147
  children: ` ${summary}`,
148
148
  }),
149
149
  ]),
@@ -171,7 +171,7 @@ export function createResponseExample(responseExample: any, mimeType: string) {
171
171
  value: `Example`,
172
172
  children: [
173
173
  guard(responseExample.summary, (summary) => [
174
- create("p", {
174
+ create("Markdown", {
175
175
  children: ` ${summary}`,
176
176
  }),
177
177
  ]),
@@ -187,7 +187,7 @@ export function createResponseExample(responseExample: any, mimeType: string) {
187
187
  value: `Example`,
188
188
  children: [
189
189
  guard(responseExample.summary, (summary) => [
190
- create("p", {
190
+ create("Markdown", {
191
191
  children: ` ${summary}`,
192
192
  }),
193
193
  ]),
@@ -70,6 +70,7 @@ export function createApiPageMD({
70
70
  `import ResponseSamples from "@theme/ResponseSamples";\n`,
71
71
  `import SchemaItem from "@theme/SchemaItem";\n`,
72
72
  `import SchemaTabs from "@theme/SchemaTabs";\n`,
73
+ `import Markdown from "@theme/Markdown";\n`,
73
74
  `import OperationTabs from "@theme/OperationTabs";\n`,
74
75
  `import TabItem from "@theme/TabItem";\n\n`,
75
76
  createHeading(title.replace(lessThan, "<").replace(greaterThan, ">")),