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 QANcKXMMcGJHRwAAbAwnHQ (envelope-from ) for ; Mon, 02 May 2022 18:53:07 +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 gOdQKXMMcGLXgwEAauVa8A (envelope-from ) for ; Mon, 02 May 2022 18:53:07 +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 72BA8CF6B for ; Mon, 2 May 2022 18:53:05 +0200 (CEST) Received: from localhost ([::1]:50636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlZIG-0007LJ-3X for larch@yhetil.org; Mon, 02 May 2022 12:53:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nlZHX-0007L8-Eh for emacs-orgmode@gnu.org; Mon, 02 May 2022 12:52:19 -0400 Received: from mail.mojserwer.eu ([195.110.48.8]:53010) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nlZHU-00051A-0D for emacs-orgmode@gnu.org; Mon, 02 May 2022 12:52:19 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id BED75E6C01; Mon, 2 May 2022 18:52:07 +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 i165a__Wkgjw; Mon, 2 May 2022 18:52:03 +0200 (CEST) Received: from localhost (83.8.164.42.ipv4.supernova.orange.pl [83.8.164.42]) by mail.mojserwer.eu (Postfix) with ESMTPSA id ABC3FE664F; Mon, 2 May 2022 18:52:03 +0200 (CEST) References: <87ilqpip86.fsf@mbork.pl> User-agent: mu4e 1.1.0; emacs 29.0.50 From: Marcin Borkowski To: "Berry, Charles" Subject: Re: How to export to markdown programmatically without the table of contents? In-reply-to: Date: Mon, 02 May 2022 18:52:01 +0200 Message-ID: <87h767j2ry.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: , Cc: Org-Mode mailing list 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=1651510387; 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=G+jD8/CmeOhHqs47mBUQFXKEFTMD/30RJboIIOsyqt4=; b=CTOv1QT/xdo4XUrakEOnFT5tpnGus0A5KpFw9Z8rsZeUSiQy+xPI61IVp42SXMaIkkLHHr CNB3XKKxj2LJ7keGHgf+i3RkaC9r7B6iXjKMvSNG1UcCb9wIgUuP8q7D6t4wv3l0cx0ZwT 3AJY8iXe7bVYo+CiHbgQEMB81YJP5tQwNYtr1u1H4AtMxFU75suMFDh9HEDulHFs2VU2/W jG6Nm9EySI7ocgd2htMqd8RcFohnih8dV2ncYsijX+YF+ZwEgLEf8l+xgE0RjzBkvPEsOH gH8N7d7uIavT8NuIEaOkj73Xju8cpznKy5fJMWASNbKfb1kRkvM4WuxSukIUuw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651510387; a=rsa-sha256; cv=none; b=RziyjQKw+UuxQc0OUU8l5O82x1cNo/HVtsNUKVSZRH451HDM4eHsgVH1q0yM8zPEvm9ksu rkAHJzpD3OYYzabboP2ZA93lPJvcHw64Ra7obJDpHMaOVHePc5lMRJtkJVSW6iL5GL8D0/ zIAu28ZbnAbnSsZ5eNK2cAxcS1W/SFHoSIDeq0UPx02asrnYBR1XoMm1XETA5ohCAft4wO utPy3EOFdTyZszx+gyNNkKlA2LzCiBvnFoEpd9JvstPms5RrSu0iaZGZBdUsJXarjEAB5o 2/6GthfY0qIQVQJH8ErM4QlQr01QYFYhEPj+LxD198veWAjc/sC/ztenOHjTUw== 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.38 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: 72BA8CF6B X-Spam-Score: -0.38 X-Migadu-Scanner: scn1.migadu.com X-TUID: zOG4oT0UBkAH On 2022-05-01, at 22:01, Berry, Charles wrote: >> On May 1, 2022, at 2:20 AM, Marcin Borkowski wrote: >> >> Hi fellow Orgers, >> >> 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)) > > seems to give what you want. Thanks! http://mbork.pl/2021-05-02_Org-mode_to_Markdown_via_the_clipboard Best, -- Marcin Borkowski http://mbork.pl