ttcMD: Added line breaks to text elements
This commit is contained in:
@@ -141,7 +141,11 @@ function render(token: Token, usedIds: string[]) {
|
||||
</Poppable>
|
||||
);
|
||||
case "text":
|
||||
return <span>{token.content}</span>;
|
||||
return (
|
||||
<span className="whitespace-pre-wrap">
|
||||
{token.content.replaceAll("\\n", "\n")}
|
||||
</span>
|
||||
);
|
||||
case "p":
|
||||
return (
|
||||
<div className="p">
|
||||
|
Reference in New Issue
Block a user