diff --git a/src/markdown-2-html.spec.ts b/src/markdown-2-html.spec.ts index c56ee19..b613452 100644 --- a/src/markdown-2-html.spec.ts +++ b/src/markdown-2-html.spec.ts @@ -937,6 +937,55 @@ describe('Markdown2Html', () => { expect(markdown2Html(input)).toBe(expected) }) + + it('68 - Should handle table', () => { + const input = { + author: 'foo368', + permlink: 'bar368', + last_update: '2019-05-10T09:15:21', + body: ` + + + + + + + +
Table 1 Header 1Table 1 Header 2
Table 1 Body 1Table 1 Body 2
+ + + + + + + + +
Table 2 Header 1Table 2 Header 2
Table 2 Body 1Table 2 Body 2
+ ` + } + const expected = ` + + + + + + + + +
Table 1 Header 1Table 1 Header 2
Table 1 Body 1Table 1 Body 2
+ + + + + + + + + +
Table 2 Header 1Table 2 Header 2
Table 2 Body 1Table 2 Body 2
` + + expect(markdown2Html(input, false)).toBe(expected) + }) }) describe("Rumble support", () => {