From de95b71ae2c2973513e71bd46af02468489e59d9 Mon Sep 17 00:00:00 2001 From: IGARASHI Masanao Date: Sun, 16 Nov 2014 09:40:37 +0900 Subject: [PATCH] Export fuzzy link as image/figure directive --- ox-rst.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ox-rst.el b/ox-rst.el index 0d114e8..398eaf1 100644 --- a/ox-rst.el +++ b/ox-rst.el @@ -134,10 +134,11 @@ When nil, an anchor with reference is used to link to the image." :type 'boolean) (defcustom org-rst-inline-image-rules - '(("file" . "\\.\\(jpeg\\|jpg\\|png\\|gif\\)\\'") - ("http" . "\\.\\(jpeg\\|jpg\\|png\\|gif\\)\\'") - ("https" . "\\.\\(jpeg\\|jpg\\|png\\|gif\\)\\'")) - "Rules characterizing image files that can be inlined into HTML. + '(("file" . "\\.\\(jpeg\\|jpg\\|png\\|gif\\|svg\\|svgz\\|swf\\)\\'") + ("fuzzy" . "\\.\\(jpeg\\|jpg\\|png\\|gif\\|svg\\|svgz\\|swf\\)\\'") + ("http" . "\\.\\(jpeg\\|jpg\\|png\\|gif\\|svg\\|svgz\\|swf\\)\\'") + ("https" . "\\.\\(jpeg\\|jpg\\|png\\|gif\\|svg\\|svgz\\|swf\\)\\'")) + "Rules characterizing image files that can be inlined into reStructuredText. A rule consists in an association whose key is the type of link to consider, and value is a regexp that will be matched against link's path."