Skip to content

Commit

Permalink
use inline to remove p tag (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
sserrata committed Mar 22, 2024
1 parent 80c6130 commit 3b24626
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
]);
}

0 comments on commit 3b24626

Please sign in to comment.