diff --git a/lib/org-ruby/image_regexp.rb b/lib/org-ruby/image_regexp.rb
index 6fc9db4..3ddc880 100644
--- a/lib/org-ruby/image_regexp.rb
+++ b/lib/org-ruby/image_regexp.rb
@@ -1,7 +1,7 @@
module Orgmode
module ImageRegexp
def image_file
- /\.(gif|jpe?g|p(?:bm|gm|n[gm]|pm)|svgz?|tiff?|x[bp]m)/i
+ /\.(gif|jpe?g|webp|p(?:bm|gm|n[gm]|pm)|svgz?|tiff?|x[bp]m)/i
end
end
end
diff --git a/lib/org-ruby/regexp_helper.rb b/lib/org-ruby/regexp_helper.rb
index 5d18f8d..29d6c92 100644
--- a/lib/org-ruby/regexp_helper.rb
+++ b/lib/org-ruby/regexp_helper.rb
@@ -171,7 +171,7 @@ def org_emphasis_regexp
end
def org_image_file_regexp
- /\.(gif|jpe?g|p(?:bm|gm|n[gm]|pm)|svgz?|tiff?|x[bp]m)/i
+ /\.(gif|jpe?g|webp|p(?:bm|gm|n[gm]|pm)|svgz?|tiff?|x[bp]m)/i
end
private
diff --git a/spec/html_examples/include-file.html b/spec/html_examples/include-file.html
index cb8ab74..c0b0535 100644
--- a/spec/html_examples/include-file.html
+++ b/spec/html_examples/include-file.html
@@ -77,10 +77,10 @@
Continue numbered list
And now back to normal!
Within a commented block
-<li>[ ] “smart quotes”</li>
-<li>[ ] I think I need this for ‘single quotes’ too. Don’t I?</li>
-<li>[ ] Em dashes would be great — wouldn’t they?</li>
-<li>[ ] I hope to develop an en dash sometime in 2010 – 2011.</li>
+<li>[ ] “smart quotes”</li>
+<li>[ ] I think I need this for ‘single quotes’ too. Don’t I?</li>
+<li>[ ] Em dashes would be great — wouldn’t they?</li>
+<li>[ ] I hope to develop an en dash sometime in 2010 – 2011.</li>
Within a center block
@@ -98,6 +98,7 @@
Within a center block
.jpeg
.svg
.svgz
+
.webp
Sample absolute link to .svg:

@@ -129,6 +130,7 @@
Within a blockquote
.jpeg
.svg
.svgz
+
.webp
Sample absolute link to .svg:

diff --git a/spec/html_examples/inline-images.html b/spec/html_examples/inline-images.html
index 81cc074..9705747 100644
--- a/spec/html_examples/inline-images.html
+++ b/spec/html_examples/inline-images.html
@@ -11,6 +11,7 @@
.jpeg
.svg
.svgz
+
.webp
Sample absolute link to .svg:

diff --git a/spec/html_examples/inline-images.org b/spec/html_examples/inline-images.org
index 5e93af3..74f3297 100644
--- a/spec/html_examples/inline-images.org
+++ b/spec/html_examples/inline-images.org
@@ -14,6 +14,7 @@ the inline image. I recognize the following image file types:
- .jpeg
- .svg
- .svgz
+- .webp
Sample absolute link to .svg:
diff --git a/spec/markdown_examples/inline-images.md b/spec/markdown_examples/inline-images.md
index fef912e..fc45b4c 100644
--- a/spec/markdown_examples/inline-images.md
+++ b/spec/markdown_examples/inline-images.md
@@ -14,6 +14,7 @@ the inline image. I recognize the following image file types:
* .jpeg
* .svg
* .svgz
+ * .webp
Sample .svg:
diff --git a/spec/markdown_examples/inline-images.org b/spec/markdown_examples/inline-images.org
index 3f85ac0..39b4df6 100644
--- a/spec/markdown_examples/inline-images.org
+++ b/spec/markdown_examples/inline-images.org
@@ -14,6 +14,7 @@ the inline image. I recognize the following image file types:
- .jpeg
- .svg
- .svgz
+- .webp
Sample .svg:
diff --git a/spec/org-ruby/image_regexp_spec.rb b/spec/org-ruby/image_regexp_spec.rb
index 64af06a..02e8576 100644
--- a/spec/org-ruby/image_regexp_spec.rb
+++ b/spec/org-ruby/image_regexp_spec.rb
@@ -15,6 +15,7 @@ class DummyRegexp
it { expect(regexp.image_file).to match 'some/path/file.gif' }
it { expect(regexp.image_file).to match 'other.svgz' }
it { expect(regexp.image_file).to match 'tiffany.tiff' }
+ it { expect(regexp.image_file).to match 'file.webp' }
it { expect(regexp.image_file).to match 'xx.xpm' }
it { expect(regexp.image_file).to match 'yy.xbm' }