diff --git a/packages/docusaurus-plugin-openapi-docs/src/markdown/createVersionBadge.ts b/packages/docusaurus-plugin-openapi-docs/src/markdown/createVersionBadge.ts index 32c95aa65..41be5d7fe 100644 --- a/packages/docusaurus-plugin-openapi-docs/src/markdown/createVersionBadge.ts +++ b/packages/docusaurus-plugin-openapi-docs/src/markdown/createVersionBadge.ts @@ -9,10 +9,14 @@ import { create, guard } from "./utils"; export function createVersionBadge(version: string | undefined) { return guard(version, (version) => [ - create("span", { - className: "theme-doc-version-badge badge badge--secondary", - children: `Version: ${escape(version)}`, - }), + create( + "span", + { + className: "theme-doc-version-badge badge badge--secondary", + children: `Version: ${escape(version)}`, + }, + { inline: true } + ), `\n\n`, ]); }