feat: allow using html in member description (#2269)

pull/2286/head
Liberty 2 years ago committed by GitHub
parent 2f0f2d5ac6
commit f7443643a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -31,9 +31,7 @@ defineProps<{
{{ member.org }} {{ member.org }}
</VPLink> </VPLink>
</p> </p>
<p v-if="member.desc" class="desc"> <p v-if="member.desc" class="desc" v-html="member.desc"/>
{{ member.desc }}
</p>
<div v-if="member.links" class="links"> <div v-if="member.links" class="links">
<VPSocialLinks :links="member.links" /> <VPSocialLinks :links="member.links" />
</div> </div>
@ -180,6 +178,13 @@ defineProps<{
margin: 0 auto; margin: 0 auto;
} }
.desc :deep(a) {
font-weight: 500;
color: var(--vp-c-brand);
text-decoration-style: dotted;
transition: color 0.25s;
}
.links { .links {
display: flex; display: flex;
justify-content: center; justify-content: center;

Loading…
Cancel
Save