Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 0cbd52c

Browse files
committed
fix(plugins/plugin-client-common): markdown tips inside of markdown tabbed
1 parent fb90c57 commit 0cbd52c

File tree

1 file changed

+4
-1
lines changed
  • plugins/plugin-client-common/src/components/Content/Markdown/rehype-tip

1 file changed

+4
-1
lines changed

plugins/plugin-client-common/src/components/Content/Markdown/rehype-tip/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ export default function plugin(/* options */) {
4545
if (child.type === 'raw' && child.value === END_OF_TIP) {
4646
flushTip(newChildren)
4747
return newChildren
48-
} else if (child.type === 'element' && child.tagName === 'div') {
48+
} else if (
49+
child.type === 'element' &&
50+
(child.tagName === 'div' || child.tagName === 'span' || child.tagName === 'tabbed')
51+
) {
4952
child.children = process(child.children)
5053
} else if (child.type === 'element' && child.tagName === 'p') {
5154
if (child.children.length > 0) {

0 commit comments

Comments
 (0)