diff --git a/__tests__/__snapshots__/index.test.js.snap b/__tests__/__snapshots__/index.test.js.snap index 77098bc14..ee1e41c77 100644 --- a/__tests__/__snapshots__/index.test.js.snap +++ b/__tests__/__snapshots__/index.test.js.snap @@ -1002,6 +1002,8 @@ exports[`export multiple Markdown renderers renders plain markdown as React 1`] exports[`export multiple Markdown renderers renders plainText from AST 1`] = `"Hello World"`; +exports[`heading 1`] = `"

Example Header

"`; + exports[`image 1`] = `"

\\"Image\\"\\"Image\\"

"`; exports[`list items 1`] = ` diff --git a/__tests__/index.test.js b/__tests__/index.test.js index a35feb686..2a5040e23 100644 --- a/__tests__/index.test.js +++ b/__tests__/index.test.js @@ -34,6 +34,10 @@ test('image', () => { expect(mount(markdown.default('![Image](http://example.com/image.png)')).html()).toMatchSnapshot(); }); +test('heading', () => { + expect(mount(markdown.default('## Example Header')).html()).toMatchSnapshot(); +}); + test('magic image', () => { expect( mount(