Merge branch 'instance-html' into 'develop'

LandingPage: treat as HTML field, prefer short_description

See merge request soapbox-pub/soapbox!1789
This commit is contained in:
Alex Gleason 2022-09-13 03:46:11 +00:00
commit 22061daf95
2 changed files with 21 additions and 1 deletions

View file

@ -113,7 +113,10 @@ const LandingPage = () => {
</h1>
<Text size='lg'>
{instance.description}
<span
className='instance-description'
dangerouslySetInnerHTML={{ __html: instance.short_description || instance.description }}
/>
</Text>
</Stack>
</div>

View file

@ -112,3 +112,20 @@ noscript {
div[data-viewport-type="window"] {
position: static !important;
}
// Instance HTML from the API.
.instance-description {
a {
@apply underline;
}
b,
strong {
@apply font-bold;
}
i,
em {
@apply italic;
}
}