This repository was archived by the owner on Jul 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
plugins/plugin-client-common/src/components/Content/Markdown/rehype-tip Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export default function plugin(/* options */) {
49
49
child . children = process ( child . children )
50
50
} else if ( child . type === 'element' && child . tagName === 'p' ) {
51
51
if ( child . children . length > 0 ) {
52
- if ( currentTip && ( child . children [ 0 ] . type !== 'text' || ! RE_TIP . test ( child . children [ 0 ] . value ) ) ) {
52
+ if ( currentTip && ( child . children [ 0 ] . type !== 'text' || ! RE_TIP_START . test ( child . children [ 0 ] . value ) ) ) {
53
53
// a new paragraph that doesn't start a new tab; add to current tab
54
54
return addToTip ( child )
55
55
}
@@ -88,8 +88,6 @@ export default function plugin(/* options */) {
88
88
position : child . position
89
89
}
90
90
return pnewChildren
91
- } else if ( currentTip ) {
92
- return addToTip ( pchild )
93
91
} else {
94
92
const startMatch = pchild . value . match ( RE_TIP_START )
95
93
if ( startMatch ) {
@@ -106,6 +104,8 @@ export default function plugin(/* options */) {
106
104
children : [ ] ,
107
105
position : child . position
108
106
}
107
+ } else if ( currentTip ) {
108
+ return addToTip ( pchild )
109
109
}
110
110
}
111
111
} else if ( currentTip ) {
You can’t perform that action at this time.
0 commit comments