Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/SummaryTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const SummaryTemplate = ({ updateMeetings }: SummaryTemplateProps) => {

async function generatePdf(markdown: any) {
const embedRegex = /\{% embed url="([^"]+)" %\}/g;
const updatedMarkdown = markdown.replace(embedRegex, (match, url) => {
const updatedMarkdown = markdown.replace(embedRegex, (match: any, url: any) => {
// Check if the URL is a YouTube video
if (url.includes("youtube.com") || url.includes("youtu.be")) {
return `[Watch Video](${url})`; // Replace with a descriptive text for videos
Expand Down