nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

webp.patch (3593B)


      1 diff --git i/src/main.zig w/src/main.zig
      2 index 09e6abd..e5ed3a3 100644
      3 --- i/src/main.zig
      4 +++ w/src/main.zig
      5 @@ -7,6 +7,7 @@ const imageExtensions = [_][]const u8{
      6      ".jpeg",
      7      ".jpg",
      8      ".gif",
      9 +    ".webp",
     10  };
     11  const videoExtensions = [_][]const u8{
     12      ".mp4",
     13 diff --git i/tests/audio_target.html w/tests/audio_target.html
     14 index 17774b1..5434aa6 100644
     15 --- i/tests/audio_target.html
     16 +++ w/tests/audio_target.html
     17 @@ -17,6 +17,7 @@
     18  <p>=&gt gemini://example.org/testimg.png</p>
     19  <a style="display: block;" href="https://example.org/video.mp4">test video</a>
     20  <audio style="display: block;" controls src="https://example.org/audio.mp3"><a src="https://example.org/audio.mp3">test audio</a></audio>
     21 +<a style="display: block;" href="http://example.org/testimg.webp">http://example.org/testimg.webp</a>
     22  <p><br/></p>
     23  <pre alt="Alt text">
     24  some stuff
     25 diff --git i/tests/image_target.html w/tests/image_target.html
     26 index de4d450..3b5152e 100644
     27 --- i/tests/image_target.html
     28 +++ w/tests/image_target.html
     29 @@ -17,6 +17,7 @@
     30  <p>=&gt gemini://example.org/testimg.png</p>
     31  <a style="display: block;" href="https://example.org/video.mp4">test video</a>
     32  <a style="display: block;" href="https://example.org/audio.mp3">test audio</a>
     33 +<a style="display: block;" href="http://example.org/testimg.webp"><img src="http://example.org/testimg.webp" alt="http://example.org/testimg.webp"/></a>
     34  <p><br/></p>
     35  <pre alt="Alt text">
     36  some stuff
     37 diff --git i/tests/inlined_target.html w/tests/inlined_target.html
     38 index 210bf5c..cd92e08 100644
     39 --- i/tests/inlined_target.html
     40 +++ w/tests/inlined_target.html
     41 @@ -17,6 +17,7 @@
     42  <p>=&gt gemini://example.org/testimg.png</p>
     43  <video style="display: block;" controls src="https://example.org/video.mp4"><a src="https://example.org/video.mp4">test video</a></video>
     44  <audio style="display: block;" controls src="https://example.org/audio.mp3"><a src="https://example.org/audio.mp3">test audio</a></audio>
     45 +<a style="display: block;" href="http://example.org/testimg.webp"><img src="http://example.org/testimg.webp" alt="http://example.org/testimg.webp"/></a>
     46  <p><br/></p>
     47  <pre alt="Alt text">
     48  some stuff
     49 diff --git i/tests/source.gmi w/tests/source.gmi
     50 index 35af512..626cc39 100644
     51 --- i/tests/source.gmi
     52 +++ w/tests/source.gmi
     53 @@ -17,6 +17,7 @@ I write things here
     54  => gemini://example.org/testimg.png
     55  => https://example.org/video.mp4 test video
     56  => https://example.org/audio.mp3 test audio
     57 +=> http://example.org/testimg.webp
     58  
     59  ```  	Alt text
     60  some stuff
     61 diff --git i/tests/target.html w/tests/target.html
     62 index ed3e00e..66fb19d 100644
     63 --- i/tests/target.html
     64 +++ w/tests/target.html
     65 @@ -17,6 +17,7 @@
     66  <p>=&gt gemini://example.org/testimg.png</p>
     67  <a style="display: block;" href="https://example.org/video.mp4">test video</a>
     68  <a style="display: block;" href="https://example.org/audio.mp3">test audio</a>
     69 +<a style="display: block;" href="http://example.org/testimg.webp">http://example.org/testimg.webp</a>
     70  <p><br/></p>
     71  <pre alt="Alt text">
     72  some stuff
     73 diff --git i/tests/video_target.html w/tests/video_target.html
     74 index eded463..f4047b2 100644
     75 --- i/tests/video_target.html
     76 +++ w/tests/video_target.html
     77 @@ -17,6 +17,7 @@
     78  <p>=&gt gemini://example.org/testimg.png</p>
     79  <video style="display: block;" controls src="https://example.org/video.mp4"><a src="https://example.org/video.mp4">test video</a></video>
     80  <a style="display: block;" href="https://example.org/audio.mp3">test audio</a>
     81 +<a style="display: block;" href="http://example.org/testimg.webp">http://example.org/testimg.webp</a>
     82  <p><br/></p>
     83  <pre alt="Alt text">
     84  some stuff