Skip to content

Commit

Permalink
fix: remove initial new line from transcript
Browse files Browse the repository at this point in the history
  • Loading branch information
alangumer committed Oct 2, 2024
1 parent b31c789 commit c52f7db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/molecules/transcript.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default function Transcript({
const __html = isManuallyCreatedTranscript
? text
: text
.replace(/^\n+/, '')
.split('\n')
.map((paragraph) => `<p>${paragraph}</p>`)
.join('');
Expand Down

0 comments on commit c52f7db

Please sign in to comment.