From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Cassou Subject: Bug: Image export with link does not support query delimiter [8.2.10 (release_8.2.10 @ /usr/local/share/emacs/25.2/lisp/org/)] Date: Thu, 23 Mar 2017 10:47:40 +0100 Message-ID: <8760j0uxxf.fsf@cassou.me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58652) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cqzLj-00062D-Ip for emacs-orgmode@gnu.org; Thu, 23 Mar 2017 05:48:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cqzLf-0006eR-DR for emacs-orgmode@gnu.org; Thu, 23 Mar 2017 05:48:07 -0400 Received: from mail.choca.pics ([62.210.108.126]:55908) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cqzLe-0006ca-UT for emacs-orgmode@gnu.org; Thu, 23 Mar 2017 05:48:03 -0400 Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id B6AC4232AD0E for ; Thu, 23 Mar 2017 10:47:52 +0100 (CET) Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id pHubNWstXJ6f for ; Thu, 23 Mar 2017 10:47:48 +0100 (CET) Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id CBB90232AD10 for ; Thu, 23 Mar 2017 10:47:48 +0100 (CET) Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id nlEJLt8qy3P1 for ; Thu, 23 Mar 2017 10:47:48 +0100 (CET) Received: from luz4 (31-211-216-84.customers.ownit.se [31.211.216.84]) by mail.choca.pics (Postfix) with ESMTPSA id 8B57A232AD0E for ; Thu, 23 Mar 2017 10:47:48 +0100 (CET) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------ Given this org file [[http://foo.com][https://foo.com/badge.svg]] [[http://foo.com][https://foo.com/badge.svg?branch=3Dmaster]] I get this when exporting to HTML:

https://f= oo.com/badge.svg?branch=3Dmaster

I was expecting both outputs to be figures with an image. It seems that the query "?branch=3Dmaster" at the end of the URL prevents the output of a picture. Emacs : GNU Emacs 25.2.4 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.10= ) of 2017-03-18 Package: Org-mode version 8.2.10 (release_8.2.10 @ /usr/local/share/emacs= /25.2/lisp/org/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-id-locations-file "/home/cassou/.emacs.d/var/org/id-locations.el" org-hide-leading-stars t org-clock-clocked-in-display nil org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-comm= and-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-latex-classes '(("beamer" "\\documentclass[presentation]{beamer}" ("= \\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subs= ubsection{%s}" . "\\subsubsection*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\sect= ion{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subs= ubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subpar= agraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%= s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s= }" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subs= ubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" = . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s= }" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subs= ubsection{%s}" . "\\subsubsection*{%s}")) ) org-clock-persist-file "/home/cassou/.emacs.d/var/org/clock-persist.el" org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-= command-hook) org-ellipsis "=E2=A4=B5" org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-log-done 'time org-latex-format-inlinetask-function 'ignore org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-defaul= t org-startup-align-all-tables t org-twbs-format-headline-function 'ignore org-file-apps '(("\\.png\\'" . default) (t unify-opening-open file) (aut= o-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . default) ("\\.pdf\\'" . default)) org-export-with-toc nil org-special-ctrl-a/e t org-twbs-format-inlinetask-function 'ignore org-agenda-custom-commands '((" " "Agenda" ((agenda "" nil) (tags "REFILE" ((org-agenda-overriding-header "Tasks to= Refile") (org-tags-match-list-sublevels nil))) ) nil) ) org-latex-format-headline-function 'org-latex-format-headline-default-fu= nction org-default-notes-file "~/Documents/configuration/org/refile.org" org-capture-templates '(("t" "Todo" entry (file org-default-notes-file) = "* TODO %?%i") ("s" "Schedule" entry (file org-default-calendar= -file) "* %?\n%^T")) org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-html-postamble nil org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-con= figure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-table-use-standard-references nil org-mode-hook '(er/add-org-mode-expansions (lambda nil (org-add-hook (quote change-major-mode-hook) (quote org= -show-block-all) (quote append) (quote local))) #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-re= sult-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-refile-targets '((("~/Documents/configuration/org/repeating.org" "~/= Documents/configuration/org/someday.org" "~/Documents/configuration/org/tasks.org") :maxlevel . 2) ) org-fontify-done-headline t org-outline-path-complete-in-steps nil org-use-speed-commands t org-ascii-format-drawer-function '(lambda (name contents width) contents= ) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safel= y-maybe) org-directory "~/Documents/configuration/org" org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers= org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-vi= sibility-change) org-todo-keywords '((sequence "TODO(t)" "|" "DONE(d)" "CANCELLED(c)")) org-time-stamp-rounding-minutes '(10 10) org-modules '(org-protocol org-capture ox-beamer) org-catch-invisible-edits 'error org-export-allow-bind-keywords t org-babel-tangle-lang-exts '(("python" . "py") ("java" . "java") ("emacs= -lisp" . "el")) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-twbs-format-drawer-function '(lambda (name contents) contents) org-html-format-headline-function 'ignore org-completion-use-ido t org-export-creator-string "" org-babel-load-languages '((nim . t) (sh . t) (emacs-lisp . t) (java . t= ) (python . t)) org-html-format-inlinetask-function 'ignore org-agenda-files '("~/Documents/configuration/org/schplaf.org" "~/Docume= nts/configuration/org/repeating.org" "~/Documents/configuration/org/tasks.org" "~/Document= s/configuration/org/refile.org") org-clock-out-hook '(org-clock-remove-empty-clock-drawer) ) --=20 Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Image export with link does not support query delimiter [8.2.10 (release_8.2.10 @ /usr/local/share/emacs/25.2/lisp/org/)] Date: Mon, 17 Apr 2017 14:21:59 +0200 Message-ID: <87efwrmdg8.fsf@nicolasgoaziou.fr> References: <8760j0uxxf.fsf@cassou.me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34093) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d05fS-00052f-J6 for emacs-orgmode@gnu.org; Mon, 17 Apr 2017 08:22:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d05fO-0003hG-HD for emacs-orgmode@gnu.org; Mon, 17 Apr 2017 08:22:06 -0400 Received: from relay7-d.mail.gandi.net ([2001:4b98:c:538::200]:38587) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d05fO-0003gT-Bp for emacs-orgmode@gnu.org; Mon, 17 Apr 2017 08:22:02 -0400 In-Reply-To: <8760j0uxxf.fsf@cassou.me> (Damien Cassou's message of "Thu, 23 Mar 2017 10:47:40 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Damien Cassou Cc: emacs-orgmode@gnu.org Hello, Damien Cassou writes: > Remember to cover the basics, that is, what you expected to happen and > what in fact did happen. You don't know how to make a good report? See > > http://orgmode.org/manual/Feedback.html#Feedback > > Your bug report will be posted to the Org-mode mailing list. > ------------------------------------------------------------------------ > > Given this org file > > [[http://foo.com][https://foo.com/badge.svg]] > > [[http://foo.com][https://foo.com/badge.svg?branch=master]] > > > I get this when exporting to HTML: > >
>

> > badge.svg > >

>
> >

> > https://foo.com/badge.svg?branch=master > >

> > > I was expecting both outputs to be figures with an image. It seems that > the query "?branch=master" at the end of the URL prevents the output of > a picture. Couldn't you extend `org-html-inline-image-rules'? Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Cassou Subject: Re: Bug: Image export with link does not support query delimiter [8.2.10 (release_8.2.10 @ /usr/local/share/emacs/25.2/lisp/org/)] Date: Tue, 18 Apr 2017 14:45:25 +0200 Message-ID: <87tw5ldguy.fsf@cassou.me> References: <8760j0uxxf.fsf@cassou.me> <87efwrmdg8.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0SVw-0007rO-5H for emacs-orgmode@gnu.org; Tue, 18 Apr 2017 08:45:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0SVr-00023O-Io for emacs-orgmode@gnu.org; Tue, 18 Apr 2017 08:45:48 -0400 Received: from mail.choca.pics ([62.210.108.126]:47232) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d0SVr-000205-8u for emacs-orgmode@gnu.org; Tue, 18 Apr 2017 08:45:43 -0400 In-Reply-To: <87efwrmdg8.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Hi Nicolas, Nicolas Goaziou writes: >> Given this org file >> >> [[http://foo.com][https://foo.com/badge.svg]] >> >> [[http://foo.com][https://foo.com/badge.svg?branch=master]] >> [...] I was expecting both outputs to be figures with an >> image. It seems that the query "?branch=master" at the end of >> the URL prevents the output of a picture. > > Couldn't you extend `org-html-inline-image-rules'? thanks for the suggestion. I have tried several ways to specify a value for this variable inside the file but failed to make the export change in any way. I can't change the value of the file in my .emacs.d as I expect github's org engine to take care of exporting the html. Thanks -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Cassou Subject: Re: Bug: Image export with link does not support query delimiter [8.2.10 (release_8.2.10 @ /usr/local/share/emacs/25.2/lisp/org/)] Date: Tue, 18 Apr 2017 14:53:45 +0200 Message-ID: <878tmxdgh2.fsf@cassou.me> References: <8760j0uxxf.fsf@cassou.me> <87efwrmdg8.fsf@nicolasgoaziou.fr> <87tw5ldguy.fsf@cassou.me> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0Sdm-0001B9-RS for emacs-orgmode@gnu.org; Tue, 18 Apr 2017 08:53:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0Sdi-00056U-Nh for emacs-orgmode@gnu.org; Tue, 18 Apr 2017 08:53:54 -0400 Received: from mail.choca.pics ([62.210.108.126]:47340) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d0Sdi-000563-Dg for emacs-orgmode@gnu.org; Tue, 18 Apr 2017 08:53:50 -0400 In-Reply-To: <87tw5ldguy.fsf@cassou.me> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Damien Cassou writes: > thanks for the suggestion. I have tried several ways to specify > a value for this variable inside the file but failed to make > the export change in any way. I can't change the value of the > file in my .emacs.d as I expect github's org engine to take > care of exporting the html. I forgot to say I tried this: #+OPTIONS: html-inline-image-rules: (("https" . "zzzzzzzzzzzzz")) * Foo :PROPERTIES: :html-inline-image-rules: (("https" . "zzzzzzzzzzzzzzzzzzzz")) :END: [[http://bar.com][https://bar.com/badge.svg]] [[http://foo.com][https://foo.com/badge.svg?branch=master]] Both links are still exported the exact same way so I guess the variable setting has no effect. What am I doing wrong? -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Image export with link does not support query delimiter [8.2.10 (release_8.2.10 @ /usr/local/share/emacs/25.2/lisp/org/)] Date: Tue, 18 Apr 2017 14:55:51 +0200 Message-ID: <87fuh5zxgo.fsf@nicolasgoaziou.fr> References: <8760j0uxxf.fsf@cassou.me> <87efwrmdg8.fsf@nicolasgoaziou.fr> <87tw5ldguy.fsf@cassou.me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0Sfo-0001u6-PV for emacs-orgmode@gnu.org; Tue, 18 Apr 2017 08:56:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0Sfk-0005uQ-Ql for emacs-orgmode@gnu.org; Tue, 18 Apr 2017 08:56:00 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38930) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d0Sfk-0005tg-KA for emacs-orgmode@gnu.org; Tue, 18 Apr 2017 08:55:56 -0400 In-Reply-To: <87tw5ldguy.fsf@cassou.me> (Damien Cassou's message of "Tue, 18 Apr 2017 14:45:25 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Damien Cassou Cc: emacs-orgmode@gnu.org Hello, Damien Cassou writes: > thanks for the suggestion. I have tried several ways to specify > a value for this variable inside the file but failed to make the > export change in any way. I succeeded with #+bind: org-html-inline-image-rules (("http" . "\\.foo\\'")) * Test [[http://orgmode.org/image.foo]] This assumes `org-export-allow-bind-keywords' is non-nil, which may not be the case within Github's Org engine. Maybe it could be set to a non-nil value there. Regards, -- Nicolas Goaziou 0x80A93738 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Damien Cassou Subject: Re: Bug: Image export with link does not support query delimiter [8.2.10 (release_8.2.10 @ /usr/local/share/emacs/25.2/lisp/org/)] Date: Tue, 02 May 2017 16:48:20 +0200 Message-ID: <871ss72u2z.fsf@cassou.me> References: <8760j0uxxf.fsf@cassou.me> <87efwrmdg8.fsf@nicolasgoaziou.fr> <87tw5ldguy.fsf@cassou.me> <87fuh5zxgo.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5Z6W-0006pO-SK for emacs-orgmode@gnu.org; Tue, 02 May 2017 10:48:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5Z6S-00032J-TH for emacs-orgmode@gnu.org; Tue, 02 May 2017 10:48:40 -0400 Received: from mail.choca.pics ([62.210.108.126]:52638) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d5Z6S-0002tt-KT for emacs-orgmode@gnu.org; Tue, 02 May 2017 10:48:36 -0400 In-Reply-To: <87fuh5zxgo.fsf@nicolasgoaziou.fr> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: >> thanks for the suggestion. I have tried several ways to specify >> a value for this variable inside the file but failed to make >> the export change in any way. > > I succeeded with > > #+bind: org-html-inline-image-rules (("http" . "\\.foo\\'")) > > * Test > > [[http://orgmode.org/image.foo]] > > This assumes `org-export-allow-bind-keywords' is non-nil, which > may not be the case within Github's Org engine. Maybe it could > be set to a non-nil value there. I can't make that work on GitHub. Any other suggestion? -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill