Skip to content

Commit

Permalink
nojira | fix media fig caption error (#249)
Browse files Browse the repository at this point in the history
* nojira | fix media fig caption error

* fixup err

* fixup merge order
  • Loading branch information
rebeccahongsf authored Dec 4, 2024
1 parent bfbe320 commit 48cb3ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/format-html.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ const options: HTMLReactParserOptions = {

case "figure":
nodeProps.className = twMerge(
"table mb-20",
nodeProps.className,
"table mb-20",
!nodeProps.className.includes("float") && "w-full"
)
delete nodeProps.role
Expand Down

0 comments on commit 48cb3ad

Please sign in to comment.