diff --git a/lib/parseHtml.test.ts b/lib/parseHtml.test.ts index ed3d1153..2d2628b0 100644 --- a/lib/parseHtml.test.ts +++ b/lib/parseHtml.test.ts @@ -17,9 +17,10 @@ describe('parseHtml', () => { it('handles links with spaces', () => { const html = `
Hello + Hello
` - expect(trim(html)).toEqual('
Hello
') + expect(trim(html)).toEqual('
HelloHello
') }) }) describe('toMarkdown', () => { diff --git a/lib/parseHtml.ts b/lib/parseHtml.ts index cc01b628..ac4a7aec 100644 --- a/lib/parseHtml.ts +++ b/lib/parseHtml.ts @@ -10,17 +10,26 @@ export const trim = (html: string = ''): string => { .split(' token.trim()) .join('