From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4ORcOMK2cWKrgAAAbAwnHQ (envelope-from ) for ; Wed, 04 May 2022 01:12:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GB5LOMK2cWIIQAAAauVa8A (envelope-from ) for ; Wed, 04 May 2022 01:12:02 +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 9064C16233 for ; Wed, 4 May 2022 01:12:02 +0200 (CEST) Received: from localhost ([::1]:58106 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nm1gX-0005et-Nu for larch@yhetil.org; Tue, 03 May 2022 19:12:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlzfn-0000ap-Li for emacs-orgmode@gnu.org; Tue, 03 May 2022 17:03:09 -0400 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]:45882) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nlzfg-0007XC-Om for emacs-orgmode@gnu.org; Tue, 03 May 2022 17:03:07 -0400 Received: by mail-ed1-x52c.google.com with SMTP id be20so21220838edb.12 for ; Tue, 03 May 2022 14:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=RcKcrTj32D+x1VUBX482Bq4/SAzYLOSe1FQLYH30Ukk=; b=LSCpZXr9RQy5ilZJu0jhjSw5c0DsLnpuXt4g/FrspJDbEM5x2SqP9hSwQ3WX4fOCUh VAN8tuTkLGjKpqe8reoyngdLFmTiTtgadEjT1MBvtZIL0T6xTS2MvL6A8+WFmRK/oxoF qcQEBoKs26LeQx0ZML5w423NPmyYiycmdSuwBzJHfEdljpuzMCJRAFWbrC24lyxVAWoa 3Wl3Qvh9xBRkS+1x4aENKUXizSBoTNvz1EO1Ewjuxul+BeYj/pS05d119uULADEtqMmy no44EjKHNGKdafrcvqJsPoIjEVo/Givnp8QDFJqMs2ptGEZh6rT5hrD6xRw/Q+ymtXq7 USVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=RcKcrTj32D+x1VUBX482Bq4/SAzYLOSe1FQLYH30Ukk=; b=qOO3D2YdGYqZAFbqGfWFv1a0790s7l/OVdOP2GAPGN7B8NJX4tFDecuCgFmRJy5fiS J02mwQm47doNMhGtGCauRyaxEpaIUGiNpaONgvvWZ1Yml7eh9cXk019l+oFM5buvpI9T D8RG2VMu1o6WJmVCK05AGYQaT9CJJTNBMRil/rdTwhaXku4tlYA1GWr6qjtVWeWqHrLU mbXyeIh76FmJELytEdo5q6IktMvaZSt3EKRcz/3HE1WCgXMBPN3jpsw4i9jEwUddN6O3 3d0NQdyWIO3xCdGuHK1cjrLJVEV/JhM/suVVrvBbelgqmipZsWwUuvaZCi3HUhbG0gOY oBMA== X-Gm-Message-State: AOAM533rqoPSeD/m8OuJdAvrEf3yS9ZTPL2i00qKezcYtpjc8MsqkGXc JEe7GRFsKdcvY21n6LgyWHg= X-Google-Smtp-Source: ABdhPJzG7D0FKsNovBGN65iktZcnQztNm43Nhwndh30F++rQVFY/dqQfLD0y6b1z6tv1WyDCD+HYOw== X-Received: by 2002:a05:6402:4256:b0:428:39:c6c7 with SMTP id g22-20020a056402425600b004280039c6c7mr1488106edb.374.1651611778482; Tue, 03 May 2022 14:02:58 -0700 (PDT) Received: from flexignu ([2a02:908:1d0:8d20:d5ef:56fb:6841:4d24]) by smtp.gmail.com with ESMTPSA id v23-20020aa7d657000000b0042617ba639esm8306518edr.40.2022.05.03.14.02.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 May 2022 14:02:57 -0700 (PDT) From: Jeremie Juste To: Karl Voit Cc: emacs-orgmode@gnu.org, Karl Voit Subject: Re: How to export to markdown programmatically without the table of contents? References: <87ilqpip86.fsf@mbork.pl> <87h767j2ry.fsf@mbork.pl> <2022-05-03T11-09-34@devnull.Karl-Voit.at> Date: Tue, 03 May 2022 23:02:56 +0200 In-Reply-To: <2022-05-03T11-09-34@devnull.Karl-Voit.at> (Karl Voit's message of "Tue, 3 May 2022 11:15:04 +0200") Message-ID: <87fslq72in.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::52c; envelope-from=jeremiejuste@gmail.com; helo=mail-ed1-x52c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , 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=1651619522; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=RcKcrTj32D+x1VUBX482Bq4/SAzYLOSe1FQLYH30Ukk=; b=s58Sjc0q9AtjVRkZTgdiBnjzTDp/nlpp8ySMZdq2atnBF9JA3AfD6xP72SaJ3nKIXPK0Pn /Y2nmj/5eWQJ7w2+UutCxp9lDZv53v4yjvaDCgQyedGPFXJ6dP2Ci+Q/uG0BtMaayTcD9i 8+0RB3kDxjLd2/Gqwd/UmG+AOjXtfCtJFFyTmXBVEnKmMnHbj79ZU4sFxAkfG6rK13G62l 28QtUfmrN6ngxQkFvC+bIaCPn5EGYmRR8/rVrNnHGflDGuH2vOn6OzK9rK3J3ZVeGIGg49 wdgdrATZ6jok8BiRgsjdgCKD+0SO8JmfTfmguhi41h1WvfLT1xNh4iKyFv/M7A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651619522; a=rsa-sha256; cv=none; b=iYhqu9Oy+JA4cNrSsvcfA2I/psubu+Vy8aecyRUCteO1u2EjvqSxHaxn9R0SyH0KGRWA9o Cvepo4ywwO3S7zV4vzGJD6I8sFLEWpUZFYOT1yC0s4sTLpbwneUT9M+fWXELRrWQpjFTfc pz7oGVPfCG5zTBWYyoIC9aPEFCkwXU3NmBIcyAitb6YT7GSS+/Bfr+JDLcyimbZD28jyLG T5pUnAGFA4u79yt1Ei9ILPseYHVrOLXy0kYGgMPsvkTiXIwKNlrqKALVmr+Xjfglp07UZU fEEepeDIqbj63vpSQ/oF0Ke/aUxexkKsb3IRHZqLmCfUvqV0GYF/E838cYqnIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LSCpZXr9; dmarc=pass (policy=none) header.from=gmail.com; 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: -2.98 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=LSCpZXr9; dmarc=pass (policy=none) header.from=gmail.com; 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: 9064C16233 X-Spam-Score: -2.98 X-Migadu-Scanner: scn1.migadu.com X-TUID: UdftTk7ayO9o Hello Karl, 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? with $ emacs -Q -L ./lisp -l org /tmp/test.org then C-c C-e, I don't have markdown in the default export options. tested with, Org mode version 9.5.3 (release_9.5.3-467-g2bd34e @ /home/djj/src/org-mode/lisp/). And I still work with (require 'ox-md). Best regards, Jeremie