Skip to content

Commit 46b5124

Browse files
authored
Fix incorrectly encoded heading (PaloAltoNetworks#1149)
* Fix incorrectly encoded character * fix incorrectly encoded heading
1 parent f61fc5e commit 46b5124

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* LICENSE file in the root directory of this source tree.
66
* ========================================================================== */
77

8-
import { clean, create } from "./utils";
8+
import { create } from "./utils";
99

1010
export function createHeading(heading: string) {
1111
return [
1212
create(
1313
"Heading",
1414
{
15-
children: clean(heading),
15+
children: heading,
1616
as: "h1",
1717
className: "openapi__heading",
1818
},

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function createSchemaPageMD({ schema }: SchemaPageMetadata) {
135135
return render([
136136
`import Schema from "@theme/Schema";\n`,
137137
`import Heading from "@theme/Heading";\n\n`,
138-
createHeading(title.replace(lessThan, "<").replace(greaterThan, ">")),
138+
createHeading(title),
139139
createDescription(description),
140140
create("Schema", {
141141
schema: schema,

0 commit comments

Comments
 (0)