Skip to content

Commit

Permalink
feat(rehype): recognize .webp and .avif extensions as images
Browse files Browse the repository at this point in the history
  • Loading branch information
rasendubi authored Jan 23, 2025
2 parents 1c6fae6 + b48123a commit 312143c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-eyes-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'uniorg-rehype': minor
---

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

0 comments on commit 312143c

Please sign in to comment.