mirror of
https://github.com/quartz-community/roam.git
synced 2026-07-22 02:50:27 +00:00
fix: resolve ESLint and formatting issues for CI compliance
This commit is contained in:
parent
aec62f6211
commit
187f5d116f
1 changed files with 3 additions and 2 deletions
|
|
@ -72,7 +72,7 @@ function transformSpecialEmbed(node: Paragraph, opts: RoamOptions): Html | null
|
|||
</audio>`,
|
||||
}
|
||||
: null;
|
||||
case "video":
|
||||
case "video": {
|
||||
if (!opts.videoComponent) return null;
|
||||
// Check if it's a YouTube video
|
||||
const youtubeMatch = url.match(
|
||||
|
|
@ -80,7 +80,7 @@ function transformSpecialEmbed(node: Paragraph, opts: RoamOptions): Html | null
|
|||
);
|
||||
if (youtubeMatch && youtubeMatch[1]) {
|
||||
const videoId = youtubeMatch[1].split("&")[0]; // Remove additional parameters
|
||||
const playlistMatch = url.match(/[?&]list=([^#\&\?]*)/);
|
||||
const playlistMatch = url.match(/[?&]list=([^#&?]*)/);
|
||||
const playlistId = playlistMatch ? playlistMatch[1] : null;
|
||||
|
||||
return {
|
||||
|
|
@ -104,6 +104,7 @@ function transformSpecialEmbed(node: Paragraph, opts: RoamOptions): Html | null
|
|||
</video>`,
|
||||
};
|
||||
}
|
||||
}
|
||||
case "pdf":
|
||||
return opts.pdfComponent
|
||||
? {
|
||||
|
|
|
|||
Loading…
Reference in a new issue