feat: show tag hover card when hovering cursor on hashtag links (#2621)
Co-authored-by: userquin <userquin@gmail.com>
This commit is contained in:
parent
0fa87f71a4
commit
e44833b18a
10 changed files with 120 additions and 28 deletions
|
@ -180,11 +180,18 @@ exports[`content-rich > handles html within code blocks 1`] = `
|
|||
exports[`content-rich > hashtag adds bdi 1`] = `
|
||||
"<p>
|
||||
Testing bdi is added
|
||||
<a
|
||||
class="mention hashtag"
|
||||
rel="nofollow noopener noreferrer"
|
||||
to="/m.webtoo.ls/tags/turkey"
|
||||
><bdi>#<span>turkey</span></bdi></a
|
||||
<span
|
||||
><VMenu
|
||||
placement="bottom-start"
|
||||
class="inline-block"
|
||||
close-on-content-click="false"
|
||||
><a
|
||||
class="mention hashtag"
|
||||
rel="nofollow noopener noreferrer"
|
||||
to="/m.webtoo.ls/tags/turkey"
|
||||
><bdi>#<span>turkey</span></bdi></a
|
||||
></VMenu
|
||||
></span
|
||||
>
|
||||
</p>
|
||||
<p></p>
|
||||
|
@ -194,12 +201,17 @@ exports[`content-rich > hashtag adds bdi 1`] = `
|
|||
exports[`content-rich > hashtag doesn't add 2 bdi 1`] = `
|
||||
"<p>
|
||||
Testing bdi not added
|
||||
<a
|
||||
class="mention hashtag"
|
||||
rel="nofollow noopener noreferrer"
|
||||
to="/m.webtoo.ls/tags/turkey"
|
||||
><bdi></bdi
|
||||
></a>
|
||||
<span
|
||||
><VMenu
|
||||
placement="bottom-start"
|
||||
class="inline-block"
|
||||
close-on-content-click="false"
|
||||
><a
|
||||
class="mention hashtag"
|
||||
rel="nofollow noopener noreferrer"
|
||||
to="/m.webtoo.ls/tags/turkey"
|
||||
><bdi></bdi></a></VMenu
|
||||
></span>
|
||||
</p>
|
||||
<p></p>
|
||||
"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue