mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: keep '<kbd>' formatting when quoting posts
This commit is contained in:
@@ -181,6 +181,9 @@ QUnit.test("supporting html tags by keeping them", assert => {
|
||||
html = `Lorem <del>ipsum dolor</del> sit.`;
|
||||
assert.equal(toMarkdown(html), html);
|
||||
|
||||
html = `Have you tried clicking the <kbd>Help Me!</kbd> button?`;
|
||||
assert.equal(toMarkdown(html), html);
|
||||
|
||||
html = `Lorem <a href="http://example.com"><del>ipsum \n\n\n dolor</del> sit.</a>`;
|
||||
output = `Lorem [<del>ipsum dolor</del> sit.](http://example.com)`;
|
||||
assert.equal(toMarkdown(html), output);
|
||||
|
||||
Reference in New Issue
Block a user