Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
* LICENSE file in the root directory of this source tree.
* ========================================================================== */

import { clean, create } from "./utils";
import { create } from "./utils";

export function createHeading(heading: string) {
return [
create(
"Heading",
{
children: clean(heading),
children: heading,
as: "h1",
className: "openapi__heading",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function createSchemaPageMD({ schema }: SchemaPageMetadata) {
return render([
`import Schema from "@theme/Schema";\n`,
`import Heading from "@theme/Heading";\n\n`,
createHeading(title.replace(lessThan, "<").replace(greaterThan, ">")),
createHeading(title),
createDescription(description),
create("Schema", {
schema: schema,
Expand Down
Loading