@takazudo/mdx-formatter 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hybrid-formatter.js +5 -0
- package/package.json +1 -1
package/dist/hybrid-formatter.js
CHANGED
|
@@ -247,6 +247,11 @@ export class HybridFormatter {
|
|
|
247
247
|
return;
|
|
248
248
|
}
|
|
249
249
|
const endLine = jsxNode.position.end.line - 1;
|
|
250
|
+
// Skip JSX elements inside table rows
|
|
251
|
+
const currentLineContent = this.lines[endLine];
|
|
252
|
+
if (currentLineContent && currentLineContent.trim().startsWith('|')) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
250
255
|
if (endLine < this.lines.length - 1) {
|
|
251
256
|
const nextLine = this.lines[endLine + 1];
|
|
252
257
|
// Check if next line is text (not empty, not heading)
|