Fix WYSIWYG text + image paste (#13542)

* Fix WYSIWYG text + image paste

* add test for a link and text
This commit is contained in:
Vasu Bhog
2020-11-25 12:42:07 -06:00
committed by GitHub
parent 1554e51932
commit 2a7b90fd70
2 changed files with 13 additions and 2 deletions

View File

@@ -137,6 +137,8 @@ suite('HTML Markdown Converter', function (): void {
assert.equal(htmlMarkdownConverter.convert(htmlString), '[msft](https://www.microsoft.com/images/msft.png)', 'Basic https link test failed');
htmlString = '<a href="http://www.microsoft.com/images/msft.png">msft</a>';
assert.equal(htmlMarkdownConverter.convert(htmlString), '[msft](http://www.microsoft.com/images/msft.png)', 'Basic http link test failed');
htmlString = 'Test <a href="http://www.microsoft.com/images/msft.png">msft</a>';
assert.equal(htmlMarkdownConverter.convert(htmlString), 'Test [msft](http://www.microsoft.com/images/msft.png)', 'Basic http link + text test failed');
});
test('Should transform <li> tags', () => {