Skip to content

Commit

Permalink
feat(rehype): recognize avif as well
Browse files Browse the repository at this point in the history
  • Loading branch information
rasendubi authored Jan 23, 2025
1 parent ebc6ab0 commit b48123a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/gorgeous-eyes-begin.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'uniorg-rehype': minor
---

Support WebP image format
Recognize `.webp` and `.avif` extensions as images.
1 change: 1 addition & 0 deletions packages/uniorg-rehype/src/org-to-hast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const defaultOptions: OrgToHastOptions = {
'pnm',
'svg',
'webp',
'avif',
],
useSections: false,
footnotesSection: (footnotes) => [hast('h1', {}, 'Footnotes:'), ...footnotes],
Expand Down

0 comments on commit b48123a

Please sign in to comment.