Skip to content

Commit 1ac31a3

Browse files
committed
Write failing test for jsx escaping bug
1 parent b503975 commit 1ac31a3

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

test/all.test.js

+4
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,7 @@ test('Converts tables and table cells', () => {
5353
test('Can render everything', () => {
5454
expectIO('io/everything.md', 'io/everything.js');
5555
});
56+
57+
test('Allows inline JSX', () => {
58+
expectIO('io/jsx.md', 'io/jsx.js');
59+
});

test/io/jsx.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React, { Fragment } from "react";
2+
3+
const Markdown = () => (
4+
<Fragment>
5+
<div style={{ width: '500px', display: 'flex' }}>JSX</div>
6+
</Fragment>
7+
);
8+
export default Markdown;

test/io/jsx.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# JSX
2+
3+
<div style={{ width: '500px', display: 'flex' }}>JSX</div>

0 commit comments

Comments
 (0)