Parse out markdown on list elements
This commit is contained in:
parent
fff703c8d9
commit
d09b431932
2 changed files with 2 additions and 2 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ export default function ListQuestion({
|
|||
[{status}] {title}
|
||||
</Typography>
|
||||
<Typography noWrap variant='body1'>
|
||||
{text}
|
||||
{text.replace(/<[^>]*>?/gm, '')}
|
||||
</Typography>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
|
|
|||
Reference in a new issue