Commit b17cbf51 authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: when converting markdown to plaintext, only truncate after conversion

parent cc09f119
Pipeline #303113 passed with stages
in 9 minutes and 8 seconds
......@@ -7,7 +7,7 @@ export interface ItemDescriptionProps {
export function ItemDescription(props: ItemDescriptionProps): JSX.Element {
const plaintext = usePlaintext({ markdown: props.text.slice(0, maxPreviewDescriptionLength) })
const plaintext = usePlaintext({ markdown: props.text }).slice(0, maxPreviewDescriptionLength)
return <p className={css['text']}>{plaintext}</p>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment