mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-06 02:38:06 +09:00
This commit is contained in:
parent
c7784d1534
commit
e93f121c58
@ -27,7 +27,7 @@ module.exports = function(tokens, shouldBreak, shouldEscape) {
|
||||
case 'link':
|
||||
return '<mk-url href="' + escape(token.content) + '" target="_blank"></mk-url>';
|
||||
case 'mention':
|
||||
return '<a href="' + CONFIG.url + '/' + escape(token.username) + '" target="_blank" data-user-preview="' + token.content + '">' + token.content + '</a>';
|
||||
return '<a href="' + CONFIG.url + '/' + escape(token.username) + '" target="_blank" data-user-preview="' + token.content + '" ' + (me && me.username == token.username ? 'data-is-me' : '') + '>' + token.content + '</a>';
|
||||
case 'hashtag': // TODO
|
||||
return '<a>' + escape(token.content) + '</a>';
|
||||
case 'code':
|
||||
|
@ -239,6 +239,14 @@
|
||||
background #f8f8f8
|
||||
border-radius 2px
|
||||
|
||||
[data-is-me]:after
|
||||
content "you"
|
||||
padding 0 4px
|
||||
margin-left 4px
|
||||
font-size 80%
|
||||
color $theme-color-foreground
|
||||
background $theme-color
|
||||
|
||||
> .media
|
||||
> img
|
||||
display block
|
||||
|
@ -219,6 +219,14 @@
|
||||
background #f8f8f8
|
||||
border-radius 2px
|
||||
|
||||
[data-is-me]:after
|
||||
content "you"
|
||||
padding 0 4px
|
||||
margin-left 4px
|
||||
font-size 80%
|
||||
color $theme-color-foreground
|
||||
background $theme-color
|
||||
|
||||
> .media
|
||||
> img
|
||||
display block
|
||||
|
Loading…
Reference in New Issue
Block a user