@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.
@@ -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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takazudo/mdx-formatter",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "AST-based markdown and MDX formatter with Japanese text support",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",