Parse out markdown on list elements

This commit is contained in:
Ceferino Patino 2022-08-11 21:59:45 -05:00
commit d09b431932
2 changed files with 2 additions and 2 deletions

View file

@ -32,7 +32,7 @@ export default function ListAnswer({
to={`/questions/${question_id}`}
style={{ textDecoration: 'none', color: 'inherit' }}
>
{text.split(' ').slice(0, 150).join(' ') + '...'}
{text.replace(/<[^>]*>?/gm, '')}
</Typography>
</Grid>
</Grid>

View file

@ -37,7 +37,7 @@ export default function ListQuestion({
[{status}] {title}
</Typography>
<Typography noWrap variant='body1'>
{text}
{text.replace(/<[^>]*>?/gm, '')}
</Typography>
</Grid>
</Grid>