Skip to content

Commit 1bd7b94

Browse files
authored
Address HTML minifier warnings caused by malformed MDX and HTML (#1033)
* avoid block elements inside p * use JSX format string to avoid duplicate elements * remove unused import
1 parent 1c39f62 commit 1bd7b94

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/docusaurus-plugin-openapi-docs/src/markdown/createAuthentication.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ export function createAuthentication(securitySchemes: SecuritySchemeObject) {
3535
create("td", {
3636
children: [
3737
guard(tokenUrl, () =>
38-
create("p", { children: `Token URL: ${tokenUrl}` })
38+
create("div", { children: `Token URL: ${tokenUrl}` })
3939
),
4040
guard(authorizationUrl, () =>
41-
create("p", {
41+
create("div", {
4242
children: `Authorization URL: ${authorizationUrl}`,
4343
})
4444
),
4545
guard(refreshUrl, () =>
46-
create("p", { children: `Refresh URL: ${refreshUrl}` })
46+
create("div", { children: `Refresh URL: ${refreshUrl}` })
4747
),
4848
create("span", { children: "Scopes:" }),
4949
create("ul", {

packages/docusaurus-plugin-openapi-docs/src/markdown/createTermsOfService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function createTermsOfService(termsOfService: string | undefined) {
2323
}),
2424
create("a", {
2525
href: `${termsOfService}`,
26-
children: termsOfService,
26+
children: `{'${termsOfService}'}`,
2727
}),
2828
],
2929
});

0 commit comments

Comments
 (0)