Skip to content

Commit

Permalink
馃摵 Prefer video in web build if available (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 committed May 9, 2024
1 parent 76aeb3d commit 99adfdc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/weak-bugs-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"myst-cli": patch
---

Change priority of mp4 to prefer video over images if both are available
2 changes: 1 addition & 1 deletion packages/myst-cli/src/process/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ import type { TransformFn } from './mdast.js';
import { finalizeMdast, postProcessMdast, transformMdast } from './mdast.js';

const WEB_IMAGE_EXTENSIONS = [
ImageExtensions.mp4,
ImageExtensions.webp,
ImageExtensions.svg,
ImageExtensions.gif,
ImageExtensions.png,
ImageExtensions.jpg,
ImageExtensions.jpeg,
ImageExtensions.mp4,
];

export type ProcessFileOptions = {
Expand Down

0 comments on commit 99adfdc

Please sign in to comment.