From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] ox-md.el: fixed an issue where exporting markdown ToC would fail if heading numbering is not enabled Date: Sat, 21 Apr 2018 11:14:43 +0200 Message-ID: <87wox0exa4.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9oba-0005AY-AV for emacs-orgmode@gnu.org; Sat, 21 Apr 2018 05:14:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9obX-0002xF-5O for emacs-orgmode@gnu.org; Sat, 21 Apr 2018 05:14:50 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:33101) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f9obW-0002tV-VV for emacs-orgmode@gnu.org; Sat, 21 Apr 2018 05:14:47 -0400 In-Reply-To: (Yue Zhu's message of "Fri, 20 Apr 2018 11:05:46 -0400") 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: Yue Zhu Cc: emacs-orgmode@gnu.org Hello, Yue Zhu writes: > When exporting markdown with ToC, if heading numbering is not enabled, it > would fail with the attached backtrace. The cause is that the function > `org-md--build-toc' in `ox-md.el' does not properly handle this case which > effectively results in a function call `(format "%d." nil)'. In my patch, > when exporting markdown with ToC, if heading numbering is not enabled, ToC > will be shown as an unordered list. Applied. Thank you. Regards, -- Nicolas Goaziou