From mboxrd@z Thu Jan 1 00:00:00 1970 From: dbitouze@wanadoo.fr (Denis =?utf-8?Q?Bitouz=C3=A9?=) Subject: Bug: Internal links broken when exporting from org mode to markdown and odt [8.3.1 (8.3.1-103-g366dc4-elpa @ /home/bitouze/.emacs.d/elpa/org-20150907/)] Date: Thu, 10 Sep 2015 18:49:35 +0200 Message-ID: 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]:60350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za54C-0000mQ-FP for emacs-orgmode@gnu.org; Thu, 10 Sep 2015 12:51:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Za548-0004SM-Sm for emacs-orgmode@gnu.org; Thu, 10 Sep 2015 12:51:20 -0400 Received: from mail-1y.bbox.fr ([194.158.98.14]:41238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za548-0004RC-G0 for emacs-orgmode@gnu.org; Thu, 10 Sep 2015 12:51:16 -0400 Received: from drums.chezmoi.fr (128-79-202-253.hfc.dyn.abo.bbox.fr [128.79.202.253]) by mail-1y.bbox.fr (Postfix) with ESMTP id 78B8846 for ; Thu, 10 Sep 2015 18:51:14 +0200 (CEST) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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. ------------------------------------------------------------------------ When exporting from ~org-mode~, the internal links are okay for ~latex~ or ~html~ export but are broken for ~markdown~ (and ~odt~ as well but ). For instance, the following file: #+NAME: test.org #+begin_src org * One section See the [[another][another]] section. * Another section<> #+end_src =20=20=20=20=20 leads to the following (excerpt): 1. (okay) ~.tex~ file (see ~\label{orgtarget1}~ and ~\hyperref[orgtarget1]{another}~):=20 #+NAME: test.tex #+begin_src latex \documentclass[11pt]{article} [...] \usepackage{hyperref} [...] \begin{document} [...] \section{One section} \label{sec:orgheadline1} See the \hyperref[orgtarget1]{another} section. \section{Another section\label{orgtarget1}} \label{sec:orgheadline2} \end{document} #+end_src 2. (okay) ~.html~ file (see ~~ and ~another~):=20 #+NAME: test.html #+begin_src html [...] [...]

1 One secti= on

See the another section.

2 Another s= ection

[...] #+end_src 3. (*not* okay) ~.md~ file (see ~~ *but the lack* = of any ~another~):=20 #+begin_src markdown [...] # One section See the another section. # Another section #+end_src 1. (*not* okay) ~.odt~ file (see ~~ *but the doubl= e* ~~: one at the TOC level and one at the section level):=20 #+begin_src xml [...] [...] 1. One section 2. Another section [...] One section See the another section. Another section #+end_src Thanks. Emacs : GNU Emacs 24.5.1 (i686-pc-linux-gnu, GTK+ Version 3.14.8) of 2015-06-29 on drums.chezmoi.fr Package: Org-mode version 8.3.1 (8.3.1-103-g366dc4-elpa @ /home/bitouze/.em= acs.d/elpa/org-20150907/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-entities-user '(("nok" "{\\color{red}\\ding{55}}" nil "" "NOK" "NOK" "=E2=9C=98") ("ok" "{\\color{checkmark}\\ding{51}}" nil "" "OK" "OK" "=E2=9C=94") ) org-enforce-todo-checkbox-dependencies t org-inlinetask-default-state "TODO" org-agenda-search-view-always-boolean t org-agenda-log-mode-items '(clock) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-= maybe) org-pretty-entities t org-stuck-projects '("+LEVEL=3D2/-DONE" ("TODO" "STRT") nil "") org-refile-use-cache t org-clock-in-resume t org-clock-out-when-done nil org-log-states-order-reversed nil org-agenda-sticky t org-goto-interface 'outline-path-completion outline-minor-mode-hook '(leuven--outline-minor-mode-hook (lambda nil (if (and outline-minor-mode (derived-mode-p (qu= ote em= acs-lisp-mode))) (progn (hide-sublevels 1000))) ) ) org-agenda-skip-scheduled-if-done t org-ellipsis " =E2=96=BA" org-clock-persist t org-archive-location "::* Archive" org-agenda-window-setup 'current-window org-adapt-indentation nil org-agenda-entry-text-leaders " =E2=94=82 " org-agenda-scheduled-leaders '("Scheduled " " ") org-clock-mode-line-total 'all org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-agenda-exporter-settings '((ps-number-of-columns 1) (ps-landscape-mode= t) (htmlize-output-type (quote css))) org-archive-hook '(org-attach-archive-delete-maybe) org-refile-targets '((nil :maxlevel . 4) (nil :maxlevel . 2)) org-modules '(org-info org-habit org-gnus org-id org-checklist) org-cycle-hook '(org-inlinetask-hide-tasks org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visi= bility-change) org-mime-send-subtree-hook '((lambda nil (org-entry-put (point) "mail_comp= osed" (current-time-string))) ) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-confirm-babel-evaluate nil org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-co= mmand-hook) org-src-window-setup 'current-window org-export-preprocess-hook '(leuven--org-export-preprocess-hook) org-clock-total-time-cell-format "%s" org-agenda-current-time-string "Right now" org-blocker-hook '(org-block-todo-from-checkboxes org-block-todo-from-chil= dren-or-siblings-or-parent) org-fontify-done-headline t org-agenda-skip-deadline-prewarning-if-scheduled 7 org-agenda-restore-windows-after-quit t org-return-follows-link t org-babel-pre-tangle-hook '(save-buffer) org-agenda-diary-file "~/org/diary.org" org-occur-hook '(org-first-headline-recenter) org-emphasis-alist '(("*" bold "" "") ("/" italic "" "") ("_" underline "" "") ("=3D" org-verbatim "" "" verbatim) ("~" org-code "" "" verbatim)) org-font-lock-hook '(org-inlinetask-fontify) org-agenda-auto-exclude-function 'leuven--org-auto-exclude-function org-refile-target-verify-function 'bh/verify-refile-target org-speed-commands-user '(("y" org-todo-yesterday "DONE") ("d" org-todo "D= ONE")) org-src-lang-modes '(("dot" . graphviz-dot) ("ocaml" . tuareg) ("elisp" . emacs-li= sp) ("ditaa" . artist) ("asymptote" . asy) ("dot" . fundamental= ) ("sqlite" . sql) ("calc" . fundamental) ("C" . c) ("cpp" . c++) ("C++" . c++) ("screen" . shell-script) ("shell" . sh) ("bash" . sh= )) org-log-redeadline 'time org-clock-history-length 35 org-deadline-warning-days 7 org-structure-template-alist '(("E" "\\begin{equation}\n?\n\\end{equation}= " "") ("C" "#+begin_comment\n?\n#+end_comment") ("t" "#+begin_tip\n?\n#+end_tip") ("w" "#+begin_warning\n?\n#+end_warning") ("n" "#+begin_note\n?\n#+end_note") ("s" "#+beg= in_src ?\n\n#+end_src") ("e" "#+begin_example\n?\n#+end_example") ("q" "#+begin_quote\n?\n#+end_quote") ("v" "#+begin_verse\n?\n#+end_verse") ("V" "#+begin_verbatim\n?\n#+end_verbatim") ("c" "#+begin_center\n?\n#+end_center") ("l" "#+begin_latex\n?\n#+end_latex") ("L" "#+l= atex: ") ("h" "#+begin_html\n?\n#+end_html") ("H" "#+htm= l: ") ("a" "#+begin_ascii\n?\n#+end_ascii") ("A" "#+a= scii: ") ("i" "#+index: ?") ("I" "#+include: %file ?= ")) org-use-sub-superscripts '{} org-refile-allow-creating-parent-nodes 'confirm org-clock-out-remove-zero-time-clocks t org-agenda-skip-timestamp-if-done t org-metaup-hook '(org-babel-load-in-session-maybe) org-reveal-start-hook '(org-decrypt-entry) org-confirm-elisp-link-function 'yes-or-no-p org-clock-file-time-cell-format "%s" org-fast-tag-selection-single-key t org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id org-cycle-include-plain-lists nil org-agenda-sorting-strategy '((agenda time-up category-up priority-down effort-down) (todo category-up priority-down effort-down) (tags category-up priority-down effort-down)= (search category-up)) org-log-into-drawer t org-tag-faces '(("refile" (:slant italic :foreground "#A9876E")) ("personal" (:slant italic :foreground "#5C88D3")) ("work" (:slant italic :foreground "#699761")) ("FLAGGED" (:weight bold :slant italic :foreground "white" :background "#DB2D27")) ("now" (:slant italic :foreground "#000000")) ("notbillable" (:slant italic :foreground "#8774AF"))) org-default-notes-file "~/org/notes.org" org-columns-default-format "%60ITEM(Details) %5PRIORITY(Prio) %14SCHEDULED= (Scheduled) %15TAGS(Context) %7TODO(To Do) %6CLOCKSUM(Clock) %5Effort(Effor= t){:} " org-priority-faces '((65 :weight bold :foreground "#5F3731" :background "#EFC4C0") (66 :foreground "#475443" :background "#D5E1D0") (67 :foreground "#2D373F" :background "#C9DBE3")) org-babel-after-execute-hook '(org-display-inline-images) org-agenda-block-separator #("____________________________________________= ___________________________________________________________________________= _____________" 0 132 (face (:foreground "#59ACE2"))) org-src-tab-acts-natively t org-agenda-span 'day org-habit-show-habits-only-for-today nil org-hide-macro-markers t org-export-backends '(ascii html icalendar latex odt md) org-agenda-format-date "%Y-%m-%d %a = _" org-refile-use-outline-path 'file org-blank-before-new-entry '((heading . t) (plain-list-item . auto)) org-agenda-dim-blocked-tasks nil org-agenda-deadline-faces '((1.0001 . leuven-org-deadline-overdue) (0.9999 . leuven-org-deadline-today) (0.8571 . leuven-org-deadline-tomorrow) (0.0 .= leuven-org-deadline-future)) outline-minor-mode-prefix "=0F" org-treat-S-cursor-todo-selection-as-state-change nil org-tag-alist '((:startgroup) ("personal" . 112) ("work" . 119) (:endgroup) ("call" . 99) ("errands" . 101) ("finance" . 102) ("mail" . 109) ("notbillable" . 66) ("ARCHIVE" . 97) ("crypt" . 67) ("FLAGGED" . 63)) org-agenda-persistent-filter t org-global-properties '(("Effort_ALL" . "0 0:10 0:30 1:00 2:00 3:00 4:00 5= :00 6:00 8:00")) org-highlight-latex-and-related '(latex script entities) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-link-abbrev-alist '(("cache" . "http://www.google.com/search?q=3Dcache= :%s") ("dictionary" . "http://www.dict.org/bin/Dict?Database=3D*&Form= =3DDict1&Strategy=3D*&Query=3D%s") ("google" . "http://www.google.com/search?q=3D%s") ("googlegroups" . "http://groups.google.com/groups?q=3D%s") ("googlemaps" . "http://maps.google.com/maps?q=3D%= s") ("imdb" . "http://us.imdb.com/Title?%s") ("openstreetmap" . "http://nominatim.openstreetmap.org/search?q=3D= %s&polygon=3D1") ("wpen" . "http://en.wikipedia.org/wiki/%s") ("wpfr" . "http://fr.wikipedia.org/wiki/%s")) org-agenda-prefix-format '((agenda . " %-11s%i %?-12t") (timeline . " % s") (todo . " %i %-12:c") (tags . " %i %-12:c") (search . " %i %-12:c")) org-image-actual-width '(320) org-use-speed-commands t org-agenda-skip-deadline-if-done t org-list-description-max-indent 3 org-enforce-todo-dependencies t org-mode-hook '(org-clock-load (lambda nil (local-set-key (kbd "C-c m") (function org-mime-subtree))) #[nil "\300\301\302\303\304$\207" [org-add-hook before-save-hook org-encrypt-entries nil t= ] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes leuven--org-add-electric-pairs leuven--org-switch-dictionary (lambda nil (require (quote org-clock)) (setq org-clock-pe= rsist t) (org-clock-persistence-insinuate)) (lambda nil (local-set-key (kbd "C-M-n") (function outline-next-vis= ible-heading)) (local-set-key (kbd "C-M-p") (function outline-previous-visible-he= ading)) (local-set-key (kbd "C-M-u") (function outline-up-heading= ))) (lambda nil (local-set-key (kbd "C-M-w") (function org-table-copy-r= egion)) (local-set-key (kbd "C-M-y") (function org-table-paste-rectangle)) (local-unset-key (kbd "C-c SPC")) (local-unset-key (kbd "= C-c C-<"))) fci-mode (lambda nil (if (or (eq (aref (buffer-name) 0) 32) (and (boundp (quote org-babel-exp-reference-buffer)) org-babel-exp-reference-buffer) ) (message "DON'T TURN ON Flyspell mode in `%s'" (buffer-n= ame)) (message "Turn on Flyspell mode in `%s'" (buffer-name)) (flyspell-mode)) ) org-src-block-check) org-time-clocksum-format '(:hours "%d" :require-hours t :minutes ":%02d" := require-minutes t) org-agenda-clockreport-parameter-plist '(:link t :maxlevel 3 :fileskip0 t) org-insert-mode-line-in-empty-file t org-special-ctrl-a/e 'reversed org-startup-with-inline-images t org-agenda-start-on-weekday nil org-table-export-default-format "orgtbl-to-csv" org-agenda-mode-hook '((lambda nil (local-set-key (kbd "C-c m") (function = leuven-mail-subtree)))) org-habit-today-glyph 9483 org-tags-exclude-from-inheritance '("crypt") org-babel-results-keyword "results" org-clock-idle-time 120 org-agenda-inhibit-startup t org-agenda-skip-scheduled-if-deadline-is-shown t org-show-context-detail '((occur-tree . minimal) (tags-tree . minimal) (is= earch . = lineage) (bookmark-jump . lineage) (default . ancestors)) org-gnus-prefer-web-links t org-finalize-agenda-hook '(org-agenda-to-appt (lambda nil (let ((inhibit-read-only t)) (goto-char (point-min)) (org-do-emphasis-faces (point-max))) ) (lambda nil (remove-text-properties (point-min) (point-max) (quote (mouse-face t)))) leuven--org-agenda-right-justify-tags) org-read-date-prefer-future 'time org-time-stamp-rounding-minutes '(1 1) org-src-preserve-indentation t org-loop-over-headlines-in-active-region 'start-level org-open-non-existing-files t org-babel-no-eval-on-ctrl-c-ctrl-c t org-tags-column -80 org-hide-emphasis-markers t org-clock-in-switch-to-state 'leuven--org-switch-to-started org-metadown-hook '(org-babel-pop-to-session-maybe) org-todo-keywords '((sequence "NEW(n!)" "TODO(t!)" "STRT(s!)" "WAIT(w!)" "SDAY(y!)" "|" "DONE(d!)" "CANX(x!)") (sequence "QTE(q!)" "QTD(Q!)" "|" "APP(A!)" "REJ(R!)") (sequence "OPENPO(O!)" "|" "CLSDPO(C!)")) org-startup-folded nil org-habit-completed-glyph 10004 org-agenda-time-grid '((daily remove-match) "" (800 1000 1200 1400 1600 18= 00 2000)) org-clock-in-prepare-hook '(leuven--org-ask-effort) org-clock-display-default-range 'untilnow org-todo-repeat-to-state "TODO" org-agenda-search-headline-for-time nil org-agenda-finalize-hook '(org-agenda-to-appt (lambda nil (let ((inhibit-read-only t)) (goto-char (point-min)) (org-do-emphasis-faces (point-max))) ) (lambda nil (remove-text-properties (point-min) (point-max) (quote (mouse-face t)))) leuven--org-agenda-right-justify-tags) org-list-allow-alphabetical t org-fontify-whole-heading-line t org-clock-report-include-clocking-task t org-clock-sound "~/Public/Music/Sounds/alarm.wav" org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-confi= gure-edit-buffer) org-after-todo-state-change-hook '(org-clock-out-if-current) org-url-hexify-p nil org-babel-tangle-lang-exts '(("awk" . "awk") ("java" . "java") ("latex" . "tex") (= "python" . "py") ("emacs-lisp" . "el") ("elisp" . "el")) org-todo-keyword-faces '(("NEW" . leuven-org-created-kwd) ("TODO" . org-to= do) ("STRT" . leuven-org-in-progress-kwd) ("WAIT" . leuven-o= rg-waiting-for-kwd) ("SDAY" . leuven-org-someday-kwd) ("DONE" . org-d= one) ("CANX" . org-done) ("QTE" . leuven-org-quote-kwd) ("QTD" . leuven-org-quot= ed-kwd) ("APP" . leuven-org-approved-kwd) ("REJ" . leuven-org-r= ejected-kwd) ("OPENPO" . leuven-org-openpo-kwd) ("CLSDPO" . le= uven-org-closedpo-kwd)) org-babel-load-languages '((sql . t) (shell . t) (python . t) (org . t) (makefile . t) (ledger . t) (latex . t) (java . t) (dot . t) (ditaa . t) (a= wk .= t) (R . t) (emacs-lisp . t)) org-babel-R-command "R --slave --no-save --ess --encoding=3DUTF-8" org-agenda-deadline-leaders '("Deadline " "In %d d" "%d d ago") org-agenda-tags-todo-honor-ignore-options t org-after-todo-statistics-hook '(leuven--org-summary-todo) org-fontify-quote-and-verse-blocks t org-confirm-shell-link-function 'yes-or-no-p org-agenda-clock-consistency-checks '(:max-duration "10:00" :min-duration 0 :max-gap "0:00" :gap-ok-around ("4:00") :default-face ((:weight bold :box (:line-width 1 := color "#AAEE77") :for= eground "black" :background "#BFFA9E") ) :gap-face ((:weight bold :box (:line-width 1 := color "#BBDDFF") :for= eground "black" :background "#D0EDFF") ) ) ) -- Denis