* Bug: Markdown export not creating proper TOC links [8.2.6 (8.2.6-dist @ /home/marko/.emacs.d/org-8.2.6/lisp/)]
@ 2014-05-29 5:08 Marko Dimjašević
2014-05-29 19:23 ` Bastien
0 siblings, 1 reply; 2+ messages in thread
From: Marko Dimjašević @ 2014-05-29 5:08 UTC (permalink / raw
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 6023 bytes --]
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:
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1. Heading 1</a>
<ul>
<li><a href="#sec-1-1">1.1. Heading 1.1</a></li>
</ul>
</li>
<li><a href="#sec-2">2. Heading 2</a></li>
</ul>
</div>
</div>
# Heading 1
## Heading 1.1
- something
# Heading 2
- something else
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:
==============
(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=%s&polygon=1")
)
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šević
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Bug: Markdown export not creating proper TOC links [8.2.6 (8.2.6-dist @ /home/marko/.emacs.d/org-8.2.6/lisp/)]
2014-05-29 5:08 Bug: Markdown export not creating proper TOC links [8.2.6 (8.2.6-dist @ /home/marko/.emacs.d/org-8.2.6/lisp/)] Marko Dimjašević
@ 2014-05-29 19:23 ` Bastien
0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2014-05-29 19:23 UTC (permalink / raw
To: Marko Dimjašević; +Cc: emacs-orgmode
Hi Marko,
Marko Dimjašević <marko@dimjasevic.net> writes:
> I have an issue with Markdown and I guess it is a bug.
This is now fixed in maint, thanks for reporting this,
--
Bastien
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-29 19:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-29 5:08 Bug: Markdown export not creating proper TOC links [8.2.6 (8.2.6-dist @ /home/marko/.emacs.d/org-8.2.6/lisp/)] Marko Dimjašević
2014-05-29 19:23 ` Bastien
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.