Skip to content

Commit

Permalink
🐛 Videos do not show if the URL contains queries (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 authored Feb 14, 2024
1 parent b7cbb59 commit 993f4c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/smooth-yaks-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'myst-to-react': patch
---

Look to original url to determine if a video
2 changes: 1 addition & 1 deletion packages/myst-to-react/src/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function Picture({
height?: string;
align?: Alignment;
}) {
if (src.endsWith('.mp4')) {
if (src.endsWith('.mp4') || urlSource?.endsWith('.mp4')) {
return <Video width={width} height={height} align={align} src={src} urlSource={urlSource} />;
}
const image = (
Expand Down

0 comments on commit 993f4c3

Please sign in to comment.