From 7eca6cfe280c4917f373920b43cc428038e02595 Mon Sep 17 00:00:00 2001 From: Tobias Date: Thu, 5 Dec 2024 16:46:33 +0100 Subject: [PATCH 1/2] Add `prose-picture` and `prose-images` modifiers --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index 04830b9..86327d2 100644 --- a/src/index.js +++ b/src/index.js @@ -102,6 +102,8 @@ module.exports = plugin.withOptions( ['th'], ['td'], ['img'], + ['picture'], + ['images', 'img', 'picture'], ['video'], ['hr'], ['lead', '[class~="lead"]'], From 8340cfafc8268941a82b41069fe6d8cf0dddaf44 Mon Sep 17 00:00:00 2001 From: Tobias Date: Thu, 5 Dec 2024 16:48:34 +0100 Subject: [PATCH 2/2] Readme: Add picture, images modifiers --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index a4d73c5..a0e05e4 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,8 @@ Here's a complete list of available element modifiers: | `prose-th:{utility}` | `th` | | `prose-td:{utility}` | `td` | | `prose-img:{utility}` | `img` | +| `prose-picture:{utility}` | `picture` | +| `prose-images:{utility}` | `img`, `picture` | | `prose-video:{utility}` | `video` | | `prose-hr:{utility}` | `hr` |