From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marko =?UTF-8?Q?Dimja=C5=A1evi=C4=87?= Subject: Bug: Markdown export not creating proper TOC links [8.2.6 (8.2.6-dist @ /home/marko/.emacs.d/org-8.2.6/lisp/)] Date: Wed, 28 May 2014 23:08:59 -0600 Message-ID: <1401340139.4856.130.camel@neelix> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-+BizGhTOtNJPlRdYq0F+" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45734) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wpt8U-0005RS-Mh for emacs-orgmode@gnu.org; Thu, 29 May 2014 01:44:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wpt8P-0003AO-Pz for emacs-orgmode@gnu.org; Thu, 29 May 2014 01:44:18 -0400 Received: from [46.102.246.19] (port=43848 helo=mail.dimjasevic.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wpt8P-0003AF-Gx for emacs-orgmode@gnu.org; Thu, 29 May 2014 01:44:13 -0400 Received: from [192.168.2.136] (c-98-202-215-47.hsd1.ut.comcast.net [98.202.215.47]) by mail.dimjasevic.net (Postfix) with ESMTPSA id F24801341DE8 for ; Thu, 29 May 2014 07:09:02 +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 --=-+BizGhTOtNJPlRdYq0F+ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Greetings all, I have an issue with Markdown and I guess it is a bug. If I have a simple Org file with the following contents: * Heading 1 ** Heading 1.1 - something * Heading 2 - something else and run M-x org-export-dispatch m m, thus making a Markdown export to a file, the resulting file looks like this: # Heading 1 ## Heading 1.1 - something # Heading 2 - something else =20 Shouldn't there be the #sec-1 anchor somewhere next to Heading 1 and similarly for the other anchors? Obviously, when the md file gets displayed in a web browser, clicking on "1. Heading 1" in the table of contents has no effect. I expect it to jump to the part of page corresponding to Heading 1. ------------------------------------------------------------------------ Emacs : GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2014-01-18 on neelix Package: Org-mode version 8.2.6 (8.2.6-dist @ /home/marko/.emacs.d/org-8.2.6/lisp/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-export-backends '(ascii beamer html icalendar latex md) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-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}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("article" "\\documentclass[11pt]{article}" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) ("report" "\\documentclass[11pt]{report}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ) org-contacts-files '("~/org/contacts/contacts.org") org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-agenda-start-on-weekday nil org-html-format-drawer-function '(lambda (name contents) contents) org-log-done t org-latex-format-inlinetask-function 'ignore org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-export-date-timestamp-format "%Y-%m-%d" org-list-allow-alphabetical t org-agenda-skip-scheduled-if-done t org-latex-format-headline-function 'org-latex-format-headline-default-function org-capture-templates '(("c" "Contacts" entry (file "~/org/contacts/contacts.org") "* %(org-contacts-template-name)\n :PROPERTIES:\n :MOBILE: \n :PHONE:\n :ADDRESS:\n :BIRTHDAY:\n :LAST_CONTACT:\n :NOTES:\n \n :EMAIL: %(org-contacts-template-email)\n :END:") ) org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-export-copy-to-kill-ring t org-mode-hook '(flyspell-mode (lambda nil (setq fill-column 78)) org-clock-load #[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 org-mode-reftex-setup zotelo-minor-mode) org-export-with-tags 'not-in-toc org-ascii-format-drawer-function '(lambda (name contents width) contents) org-clock-persist 'history org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-export-blocks-witheld '(hidden comment) 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-visibility-change) org-agenda-tags-column -102 org-export-with-drawers nil org-agenda-ndays 7 org-link-abbrev-alist '(("osm" . "http://nominatim.openstreetmap.org/search?q=3D%s&polygon=3D1") ) org-babel-tangle-lang-exts '(("C++" . "cpp") ("latex" . "tex") ("java" . "java") ("python" . "py") ("emacs-lisp" . "el")) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-html-format-headline-function 'ignore org-babel-load-languages '((emacs-lisp . t) (python . t) (R . t) (sh . t) (java . t) (latex . t) (screen . t) (gnuplot . t) (dot . t) (org . t) (C . t) (octave . t)) org-export-preprocess-after-headline-targets-hook '(org-impress-js-save-entry-properties) org-html-format-inlinetask-function 'ignore org-agenda-files '("~/org/master.org" "~/research/notes/meetings.org") org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-confirm-babel-evaluate nil ) -- Cheers, Marko Dimja=C5=A1evi=C4=87 --=-+BizGhTOtNJPlRdYq0F+ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAABAgAGBQJThsDrAAoJEGjtezy5N0tHsYAP/iUQsY2pdX3OX8Jsfz1/6W8O 3zX1DknlehdWOAeuxE1NIjRUvaMhJna+TW/8bSJxBTkWg+Rv2whIcg/dRoCb+8Qb Ym6va/OKc0b3mKJ9F3YGagjZzRGOI16XhWg4aDCZIhqXQXi7H//51jnhMGHB8SnF N9c9zKiu+Xc2aTxsH2pqj9qASZD2dzRRoZPb9/oV+ynDT0GYADz0Jl1dBocSqKyk BVIGbcP7l4Unbh93wusVI0Ma67jjQDiXZwPyZhMWqOfQoLjRvYp9kiMCJo+rsexL Xuhh1BzCupmp9S5/GjjFCG4kt1XNQISy0NHFbSfX/RQQaVFQW8ZWtyqqKRVNI+m8 S4bEaJySSV4TZmQuPypCUEjW99lYI5SjaeF4kCovtu2vIb0K1e+WeooxAr6Hg28j nlwYERDQZY5zRYkVltM/+aqlByC2Ie/SZKlONi3Sy++ZATXVl+hFmsRfAQRYaLRT /fBczZzuSCPB0qqW79xbJfb39vuMGHmRO47lLsZTjbfAMjN3MadYNp7zLzsrElCC scCDlr3n5IigY0zSHbowHonAQ2hFj0zA3bjBnSV1Lv/snrxEdhOk51PdjUofM4Ep 4AkEA2iPkKvFya4g3dziYLJARJcIfnJHAn1wq6StWW5tRf74VZy0SpsHQVqZW9IC qX/lkzdqkwxNNin+Ufng =MM4D -----END PGP SIGNATURE----- --=-+BizGhTOtNJPlRdYq0F+--