Browse Source

Add linefeed in the mdx and handle it (#4039)

* Add linefeed in the mdx and handle it

* Add preserve whitespace
main
harish-sethuraman 3 years ago
committed by GitHub
parent
commit
bb2ade74e6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/components/MDX/TerminalBlock.tsx

2
beta/src/components/MDX/TerminalBlock.tsx

@ -43,7 +43,7 @@ function TerminalBlock({level = 'info', children}: TerminalBlockProps) {
<IconTerminal className="inline-flex mr-2 self-center" /> Terminal
</div>
</div>
<div className="px-8 pt-4 pb-6 text-primary-dark dark:text-primary-dark font-mono text-code">
<div className="px-8 pt-4 pb-6 text-primary-dark dark:text-primary-dark font-mono text-code whitespace-pre">
<LevelText type={level} />
{message}
</div>

Loading…
Cancel
Save