From 3b2462648232b130d97c1accdd4e8463341f0a02 Mon Sep 17 00:00:00 2001 From: Steven Serrata <9343811+sserrata@users.noreply.github.com> Date: Fri, 22 Mar 2024 17:06:53 -0400 Subject: [PATCH] use inline to remove p tag (#779) --- .../src/markdown/createVersionBadge.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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`, ]); }