@@ -1485,7 +1485,7 @@ test('mdast -> markdown', (t) => {
1485
1485
{ type : 'mdxJsxFlowElement' , name : 'x' } ,
1486
1486
{ extensions : [ mdxJsxToMarkdown ( ) ] }
1487
1487
) ,
1488
- '<x/>\n' ,
1488
+ '<x />\n' ,
1489
1489
'should serialize flow jsx w/ `name` w/o `attributes`, `children`'
1490
1490
)
1491
1491
@@ -1541,7 +1541,7 @@ test('mdast -> markdown', (t) => {
1541
1541
} ,
1542
1542
{ extensions : [ mdxJsxToMarkdown ( ) ] }
1543
1543
) ,
1544
- '<x {y}/>\n' ,
1544
+ '<x {y} />\n' ,
1545
1545
'should serialize flow jsx w/ `name`, `attributes` w/o `children`'
1546
1546
)
1547
1547
@@ -1586,7 +1586,7 @@ test('mdast -> markdown', (t) => {
1586
1586
} ,
1587
1587
{ extensions : [ mdxJsxToMarkdown ( ) ] }
1588
1588
) ,
1589
- '<x {...{y: "z"}}/>\n' ,
1589
+ '<x {...{y: "z"}} />\n' ,
1590
1590
'should serialize expression attributes'
1591
1591
)
1592
1592
@@ -1602,7 +1602,7 @@ test('mdast -> markdown', (t) => {
1602
1602
} ,
1603
1603
{ extensions : [ mdxJsxToMarkdown ( ) ] }
1604
1604
) ,
1605
- '<x {}/>\n' ,
1605
+ '<x {} />\n' ,
1606
1606
'should serialize expression attributes w/o `value`'
1607
1607
)
1608
1608
@@ -1634,7 +1634,7 @@ test('mdast -> markdown', (t) => {
1634
1634
} ,
1635
1635
{ extensions : [ mdxJsxToMarkdown ( ) ] }
1636
1636
) ,
1637
- '<x y/>\n' ,
1637
+ '<x y />\n' ,
1638
1638
'should serialize boolean attributes'
1639
1639
)
1640
1640
@@ -1648,7 +1648,7 @@ test('mdast -> markdown', (t) => {
1648
1648
} ,
1649
1649
{ extensions : [ mdxJsxToMarkdown ( ) ] }
1650
1650
) ,
1651
- '<x y="z"/>\n' ,
1651
+ '<x y="z" />\n' ,
1652
1652
'should serialize value attributes'
1653
1653
)
1654
1654
@@ -1668,7 +1668,7 @@ test('mdast -> markdown', (t) => {
1668
1668
} ,
1669
1669
{ extensions : [ mdxJsxToMarkdown ( ) ] }
1670
1670
) ,
1671
- '<x y={z}/>\n' ,
1671
+ '<x y={z} />\n' ,
1672
1672
'should serialize value expression attributes'
1673
1673
)
1674
1674
@@ -1688,7 +1688,7 @@ test('mdast -> markdown', (t) => {
1688
1688
} ,
1689
1689
{ extensions : [ mdxJsxToMarkdown ( ) ] }
1690
1690
) ,
1691
- '<x y={}/>\n' ,
1691
+ '<x y={} />\n' ,
1692
1692
'should serialize value expression attributes w/o `value`'
1693
1693
)
1694
1694
@@ -1705,7 +1705,7 @@ test('mdast -> markdown', (t) => {
1705
1705
{ type : 'mdxJsxTextElement' , name : 'x' } ,
1706
1706
{ extensions : [ mdxJsxToMarkdown ( ) ] }
1707
1707
) ,
1708
- '<x/>\n' ,
1708
+ '<x />\n' ,
1709
1709
'should serialize text jsx w/ `name` w/o `attributes`, `children`'
1710
1710
)
1711
1711
@@ -1736,7 +1736,7 @@ test('mdast -> markdown', (t) => {
1736
1736
} ,
1737
1737
{ extensions : [ mdxJsxToMarkdown ( ) ] }
1738
1738
) ,
1739
- '<x y="z" a/>\n' ,
1739
+ '<x y="z" a />\n' ,
1740
1740
'should serialize text jsx w/ attributes'
1741
1741
)
1742
1742
@@ -1846,7 +1846,7 @@ test('mdast -> markdown', (t) => {
1846
1846
} ,
1847
1847
{ extensions : [ mdxJsxToMarkdown ( { quote : "'" } ) ] }
1848
1848
) ,
1849
- "<x y='z'/>\n" ,
1849
+ "<x y='z' />\n" ,
1850
1850
'should support `options.quote` to quote attribute values'
1851
1851
)
1852
1852
@@ -1877,7 +1877,7 @@ test('mdast -> markdown', (t) => {
1877
1877
} ,
1878
1878
{ extensions : [ mdxJsxToMarkdown ( { quoteSmart : true } ) ] }
1879
1879
) ,
1880
- '<x y="z"/>\n' ,
1880
+ '<x y="z" />\n' ,
1881
1881
'should support `options.quoteSmart`: prefer `quote` w/o quotes'
1882
1882
)
1883
1883
@@ -1891,7 +1891,7 @@ test('mdast -> markdown', (t) => {
1891
1891
} ,
1892
1892
{ extensions : [ mdxJsxToMarkdown ( { quoteSmart : true } ) ] }
1893
1893
) ,
1894
- '<x y="z"a\'b"/>\n' ,
1894
+ '<x y="z"a\'b" />\n' ,
1895
1895
'should support `options.quoteSmart`: prefer `quote` w/ equal quotes'
1896
1896
)
1897
1897
@@ -1905,7 +1905,7 @@ test('mdast -> markdown', (t) => {
1905
1905
} ,
1906
1906
{ extensions : [ mdxJsxToMarkdown ( { quoteSmart : true } ) ] }
1907
1907
) ,
1908
- '<x y=\'z"a'b"c\'/>\n' ,
1908
+ '<x y=\'z"a'b"c\' />\n' ,
1909
1909
'should support `options.quoteSmart`: use alternative w/ more preferred quotes'
1910
1910
)
1911
1911
@@ -1919,7 +1919,7 @@ test('mdast -> markdown', (t) => {
1919
1919
} ,
1920
1920
{ extensions : [ mdxJsxToMarkdown ( { quoteSmart : true } ) ] }
1921
1921
) ,
1922
- '<x y="z"a\'b\'c"/>\n' ,
1922
+ '<x y="z"a\'b\'c" />\n' ,
1923
1923
'should support `options.quoteSmart`: use quote w/ more alternative quotes'
1924
1924
)
1925
1925
0 commit comments