fix hashtags by explicitly putting attributes
This commit is contained in:
parent
c2a4051d72
commit
d175e86901
1 changed files with 6 additions and 1 deletions
|
@ -28,6 +28,10 @@ import './rich_content.scss'
|
||||||
*/
|
*/
|
||||||
export default {
|
export default {
|
||||||
name: 'RichContent',
|
name: 'RichContent',
|
||||||
|
components: {
|
||||||
|
MentionsLine,
|
||||||
|
HashtagLink
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
// Original html content
|
// Original html content
|
||||||
html: {
|
html: {
|
||||||
|
@ -86,7 +90,8 @@ export default {
|
||||||
if (!encounteredTextReverse) {
|
if (!encounteredTextReverse) {
|
||||||
lastTags.push(linkData)
|
lastTags.push(linkData)
|
||||||
}
|
}
|
||||||
return <HashtagLink { ...linkData }/>
|
const { url, tag, content } = linkData
|
||||||
|
return <HashtagLink url={url} tag={tag} content={content}/>
|
||||||
}
|
}
|
||||||
|
|
||||||
const renderMention = (attrs, children) => {
|
const renderMention = (attrs, children) => {
|
||||||
|
|
Loading…
Reference in a new issue