File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11module Orgmode
22 module ImageRegexp
33 def image_file
4- /\. (gif|jpe?g|p(?:bm|gm|n[gm]|pm)|svgz?|tiff?|x[bp]m)/i
4+ /\. (gif|jpe?g|webp| p(?:bm|gm|n[gm]|pm)|svgz?|tiff?|x[bp]m)/i
55 end
66 end
77end
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ def org_emphasis_regexp
171171 end
172172
173173 def org_image_file_regexp
174- /\. (gif|jpe?g|p(?:bm|gm|n[gm]|pm)|svgz?|tiff?|x[bp]m)/i
174+ /\. (gif|jpe?g|webp| p(?:bm|gm|n[gm]|pm)|svgz?|tiff?|x[bp]m)/i
175175 end
176176
177177 private
Original file line number Diff line number Diff line change @@ -77,10 +77,10 @@ <h2>Continue numbered list</h2>
7777< p > And now back to normal!</ p >
7878< h2 > Within a commented block</ h2 >
7979< pre class ="example ">
80- <li>[ ] &#8220;smart quotes&#8221;</li>
81- <li>[ ] I think I need this for &#8216;single quotes&#8217; too. Don&#8217;t I?</li>
82- <li>[ ] Em dashes would be great &#8212; wouldn&#8217;t they?</li>
83- <li>[ ] I hope to develop an en dash sometime in 2010 &#8211; 2011.</li>
80+ <li>[ ] &#8220;smart quotes&#8221;</li>
81+ <li>[ ] I think I need this for &#8216;single quotes&#8217; too. Don&#8217;t I?</li>
82+ <li>[ ] Em dashes would be great &#8212; wouldn&#8217;t they?</li>
83+ <li>[ ] I hope to develop an en dash sometime in 2010 &#8211; 2011.</li>
8484</ pre >
8585< h2 > Within a center block</ h2 >
8686< div style ="text-align: center ">
@@ -98,6 +98,7 @@ <h2>Within a center block</h2>
9898 < li > .jpeg</ li >
9999 < li > .svg</ li >
100100 < li > .svgz</ li >
101+ < li > .webp</ li >
101102 </ ul >
102103 < p > Sample absolute link to .svg:</ p >
103104 < p > < img src ="https://www.w3.org/Graphics/SVG/Test/20110816/svg/animate-dom-01-f.svg " alt ="https://www.w3.org/Graphics/SVG/Test/20110816/svg/animate-dom-01-f.svg " /> </ p >
@@ -129,6 +130,7 @@ <h2>Within a blockquote</h2>
129130 < li > .jpeg</ li >
130131 < li > .svg</ li >
131132 < li > .svgz</ li >
133+ < li > .webp</ li >
132134 </ ul >
133135 < p > Sample absolute link to .svg:</ p >
134136 < p > < img src ="https://www.w3.org/Graphics/SVG/Test/20110816/svg/animate-dom-01-f.svg " alt ="https://www.w3.org/Graphics/SVG/Test/20110816/svg/animate-dom-01-f.svg " /> </ p >
Original file line number Diff line number Diff line change 1111 < li > .jpeg</ li >
1212 < li > .svg</ li >
1313 < li > .svgz</ li >
14+ < li > .webp</ li >
1415</ ul >
1516< p > Sample absolute link to .svg:</ p >
1617< p > < img src ="https://www.w3.org/Graphics/SVG/Test/20110816/svg/animate-dom-01-f.svg " alt ="https://www.w3.org/Graphics/SVG/Test/20110816/svg/animate-dom-01-f.svg " /> </ p >
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ the inline image. I recognize the following image file types:
1414- .jpeg
1515- .svg
1616- .svgz
17+ - .webp
1718
1819Sample absolute link to .svg:
1920
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ the inline image. I recognize the following image file types:
1414 * .jpeg
1515 * .svg
1616 * .svgz
17+ * .webp
1718
1819Sample .svg:
1920
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ the inline image. I recognize the following image file types:
1414- .jpeg
1515- .svg
1616- .svgz
17+ - .webp
1718
1819Sample .svg:
1920
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ class DummyRegexp
1515 it { expect ( regexp . image_file ) . to match 'some/path/file.gif' }
1616 it { expect ( regexp . image_file ) . to match 'other.svgz' }
1717 it { expect ( regexp . image_file ) . to match 'tiffany.tiff' }
18+ it { expect ( regexp . image_file ) . to match 'file.webp' }
1819 it { expect ( regexp . image_file ) . to match 'xx.xpm' }
1920 it { expect ( regexp . image_file ) . to match 'yy.xbm' }
2021
You can’t perform that action at this time.
0 commit comments