From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eNoqI8xid2JY5gAAbAwnHQ (envelope-from ) for ; Sun, 08 May 2022 08:27:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iM9iIsxid2JZLwEAG6o9tA (envelope-from ) for ; Sun, 08 May 2022 08:27:24 +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 F3D461E6A4 for ; Sun, 8 May 2022 08:27:23 +0200 (CEST) Received: from localhost ([::1]:34270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnaO2-0006Sw-7i for larch@yhetil.org; Sun, 08 May 2022 02:27:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nnaM2-0006S6-2i for emacs-orgmode@gnu.org; Sun, 08 May 2022 02:25:18 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]:58214) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nnaLw-0007aN-PK for emacs-orgmode@gnu.org; Sun, 08 May 2022 02:25:17 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id AD4D7E7165; Sun, 8 May 2022 08:25:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QVOZxbL3t3Am; Sun, 8 May 2022 08:24:59 +0200 (CEST) Received: from localhost (178235147099.dynamic-3-poz-k-0-1-0.vectranet.pl [178.235.147.99]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 55EA5E6048; Sun, 8 May 2022 08:24:59 +0200 (CEST) References: <87ilqpip86.fsf@mbork.pl> <87h767j2ry.fsf@mbork.pl> User-agent: mu4e 1.1.0; emacs 29.0.50 From: Marcin Borkowski To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: How to export to markdown programmatically without the table of contents? In-reply-to: Date: Sun, 08 May 2022 08:24:57 +0200 Message-ID: <87v8ugh77q.fsf@mbork.pl> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=195.110.48.8; envelope-from=mbork@mbork.pl; helo=mail.mojserwer.eu X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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=1651991244; 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; bh=00QaEC7y8cVeaQ+6K8pBTVSr6zLgCOtbtgRvHmZoWI4=; b=Jf6GECfiKcmG2NZrW1I9my6bOARXsisH1UqA+m3Kj4riEMCkM+tLlo1gBGy4TpmhkQLtY4 5wEcTQwGfxtBOZh/xWV2AMFEGzIOtqjHx902VHWnORY/MB7jwOgdpmAcvUHP5320ReglKj WFuur0yufkMXmO7EZZy3z7l1MnnXI2jZrKJswYOyxtoU+7jMBV4WDhGi/RZdBGHHf7yvGh gpainxBVW+baBhtyLTchFovx6BuclfmPj6Wio5IXiFJWE3Q4/biSwMhJk5MoJjHKmo5XXV a1AflNEnUpDgJMdbzs6Wck9h9DwG83sb7ege54RPXo7bgg+N3BZsJVBh9SiV0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651991244; a=rsa-sha256; cv=none; b=iPo187wj1yyAJekKpCFGDIUtwfNmTcbTW8az3IDLqgJGxCrQ9RlanD/HM6zJHIqnIJDpB1 0/BTmnqIXJuBq9pBx2+HbPeTtANPCpdDnVytQh0xkDZEGBJJOIc3dAECNNVDEiYe2mSfhN 8WTZZT120yOTaS7Wg2+TF8lmfyF95krKV5IkwWYDc0wzQ4uNF6KL0wtdGTonl3Xog2BXcP 5MwQC5bWJaWPa+rvN62c+PIe4rD9Cq4XVMtwDzN0yBoLQSfGlNBoUG3VW3aTCXRPZ9IhTD 7dBc1s3YVzFeXfq5ZrEXuzM7DHbsbAh9TUHyMh4Ob6JJvTzGahpAfn/GloE0Ag== 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: -3.10 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: F3D461E6A4 X-Spam-Score: -3.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: exZelvr+DiOG On 2022-05-07, at 10:16, Max Nikulin wrote: > On 02/05/2022 23:52, Marcin Borkowski wrote: >> On 2022-05-01, at 22:01, Berry, Charles wrote: >>>> On May 1, 2022, at 2:20 AM, Marcin Borkowski wrote: >>>> >>>> I'd like to export a Org-mode formatted string to markdown, but without >>>> the table of contents. >>>> >>>> (org-export-string-as my-string 'md t '(toc nil)) >>>> >>>> didn't work (the ToC was still there). What am I missing? >>> >>> It does seem odd that BODY-ONLY as `t' gives a toc. With latex it does not regardless of `:with-toc'. >>> >>> : (org-export-string-as my-string 'md t '(:with-toc nil)) >> Thanks! >> http://mbork.pl/2021-05-02_Org-mode_to_Markdown_via_the_clipboard > > The following links posted earlier to this mail list might be > interesting for you since they are related to "exporting" of org text > to other applications: > > https://github.com/tecosaur/emacs-everywhere > System-wide popup Emacs windows for quick edits > > https://github.com/jkitchin/ox-clip/ > Copy formatted content from org-mode > > The latter copies HTML, not markdown though. Thanks, both look really interesting! -- Marcin Borkowski http://mbork.pl