From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id EJCqAExvcmJRwwAAbAwnHQ (envelope-from ) for ; Wed, 04 May 2022 14:19:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id CHhiO0tvcmKVGwEAG6o9tA (envelope-from ) for ; Wed, 04 May 2022 14:19:23 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8E540FDFC for ; Wed, 4 May 2022 14:19:23 +0200 (CEST) Received: from localhost ([::1]:55178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmDyU-0007UI-6t for larch@yhetil.org; Wed, 04 May 2022 08:19:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56434) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmDS0-0004RT-Oe for emacs-orgmode@gnu.org; Wed, 04 May 2022 07:45:52 -0400 Received: from ciao.gmane.io ([116.202.254.214]:47486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmDRy-00062I-P8 for emacs-orgmode@gnu.org; Wed, 04 May 2022 07:45:48 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nmDRv-0006xq-GQ for emacs-orgmode@gnu.org; Wed, 04 May 2022 13:45:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Karl Voit Subject: Re: How to export to markdown programmatically without the table of contents? Date: Wed, 4 May 2022 13:45:35 +0200 Organization: www.karl-voit.at Message-ID: <2022-05-04T13-43-06@devnull.Karl-Voit.at> References: <87ilqpip86.fsf@mbork.pl> <87h767j2ry.fsf@mbork.pl> <2022-05-03T11-09-34@devnull.Karl-Voit.at> <87fslq72in.fsf@gmail.com> User-Agent: slrn/1.0.3 (Linux) X-GPG-Key: http://www.Karl-Voit.at/Karl_Voit_GnuPG_public_key.gpg X-Registered-Linux-User: 224337 X-Confession: Pastafarian http://www.venganza.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Karl Voit Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651666763; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:references:references:list-id: list-help:list-unsubscribe:list-subscribe:list-post; bh=A55LBOicdT8QuVRjAiAb0rOB1ciLwhZjhHj0/3WYU5M=; b=IzIrarx869RLEyL5sYFVeO7BnnETY1AGdgtNLBOu+wnD3FfgOC2DFEiCXduObspGjWMMpX pI+oE+RLM9UseTn+0SNKcGGnNZ4Yo62NGJV/3dB4cYp9LMQPxrEklu6lEDS2/hjZQkHQ/T VrFso3jqgWzcSctqkkoIUVcWXwEGmrxm2ZhEW3tbRpx7QW+UN/Z8FnCam4BtCLwwCuqgGb jklk2Gr6mo5VVSYpWyAjg2AbibhN58oxdLlSpjr9A11scAJP5CBzAzRfjCahxBw/JAIyZH KALfTB/56+zuV8pcaXO8U56IcXk6Z57beUBQdQ2E2SpsOLhls9vZceq8QnsxDA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651666763; a=rsa-sha256; cv=none; b=LZjzo3PxjziwixcuJ9dLJrwUVca/KnRAudKXaV3+heiA8KHjCaIV/HJ4k+vrwfgG9XSEQQ ai/JPyHVeL9uY2kmJ0bBqQuwXsJPtvuzaS19G6MlYG6c7FmCSLhRpzg/leIiKHVcfZjx8T 6YNKzumj4epL16ACjmmYG28YieRs+U3yJfI3Y5X4TEFz1xS8XwnP1pOTxYRxk95EEYnmKM kYAWfga8lrAIA6eg+jhMmbeD4Ktl8fgZAjjd5wQcDmanT8ZvqpVdrMsPlVEzMyrGOyikdk 5OgN3TcRAL2RBP+AZkIVB1hvIc8uCFGI8fmOMPa/2rnzjU/MwggkrPXLLdH0SA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -0.78 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8E540FDFC X-Spam-Score: -0.78 X-Migadu-Scanner: scn0.migadu.com X-TUID: zZLNfktGWGu2 * Jeremie Juste wrote: > Hello Karl, Hi Jeremie, > On Tuesday, 3 May 2022 at 11:15, Karl Voit wrote: >> >> I tried this neat code snippet today with Emacs 26.3 and Org-mode >> 9.1.9 and I got an error: >> >> | org-export-barf-if-invalid-backend: Unknown "nil" back-end: Aborting export >> >> When I execute the following code, I get the same error: >> | (setq region "/foo/ *bar* https://example.com baz") >> | (org-export-string-as region 'md t '(:with-toc nil)) >> >> Could it be that I don't have "md" as backend somehow? Is there a >> hidden requirement? > > And I still work with (require 'ox-md). Unfortunately, I did not write down why I thought this is not necessary any more. However, with the require statement, the error is gone and the function works now. Thanks! -- get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode: > get Memacs from https://github.com/novoid/Memacs < Personal Information Management > http://Karl-Voit.at/tags/pim/ Emacs-related > http://Karl-Voit.at/tags/emacs/