syntax-tree/mdast-util-mdx-jsx

Expressions (as attributes?) are not formatted nicely

wooorm opened this issue · 0 comments

Initial checklist

Affected packages and versions

latest

Link to runnable example

No response

Steps to reproduce

-<Editor
-  children={`Hello, *world*!
+<Editor children={`Hello, *world*!
 
-Below is an example of JSX embedded in Markdown.
+  Below is an example of JSX embedded in Markdown.
 
-<div style={{padding: '20px', backgroundColor: 'tomato', color: 'black' }}>
+  <div style={{padding: '20px', backgroundColor: 'tomato', color: 'black' }}>
   **Try and change the background color!**
-</div>`}
-/>
+  </div>`}/>

Expected behavior

The backtick string in the attribute should not be indented

Actual behavior

indented

Runtime

No response

Package manager

No response

OS

No response

Build and bundle tools

No response