mirror of
https://github.com/discourse/discourse.git
synced 2025-09-09 12:21:04 +08:00
FIX: details fixes with extra formatting
This commit is contained in:
parent
f38347400c
commit
8141e1d9bc
3 changed files with 14 additions and 4 deletions
|
@ -696,3 +696,13 @@ test("emoji - emojiSet", () => {
|
|||
{ emojiSet: 'twitter' },
|
||||
`<p><img src="/images/emoji/twitter/smile.png?v=${v}" title=":smile:" class="emoji" alt=":smile:"></p>`);
|
||||
});
|
||||
|
||||
test("details", () => {
|
||||
cooked(`<details><summary>Info</summary>coucou</details>`,
|
||||
`<details><summary>Info</summary>\n\n<p>coucou</p>\n\n</details>`,
|
||||
"manual HTML for details");
|
||||
cooked(` <details><summary>Info</summary>coucou</details>`,
|
||||
`<details><summary>Info</summary>\n\n<p>coucou</p>\n\n</details>`,
|
||||
"manual HTML for details with a space");
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue