From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id QH7aG3C3P2aoNQAAe85BDQ:P1 (envelope-from ) for ; Sat, 11 May 2024 20:22:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QH7aG3C3P2aoNQAAe85BDQ (envelope-from ) for ; Sat, 11 May 2024 20:22:40 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=N+T7STK8; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1715451760; 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=Jt50uNHC3JSIxwUiUvW33LH8b2S/pj708+yW2YGQdW8=; b=PYYytgKYFDi87r0r1SnTXfWqFN5IlThNyniUr94SBMB/VD+yXTX7e38h3udxop7quk4ddL rsQcNeh7JjmPUYVKQbBn3GkigB/O50KHXHoGeGwjnXV4/5yEuxWRSND0CLiX3I0Z6UoQ95 ldOIkc6842fYglyBNGg4jH+pkqXZV9zDKwztGCxddTPWjzQ8OFW8Vvb/5OazpBXiMpZf6D VmuCouGMipCTKzrwrpmvUdHWfnTnHi2H0YGC8qwynsl1LAvdRK4IDSWiLbKGcrXU18bZUb Eb2qFHO8Av2poE9+J7xxQMOBZ1YG8qIiKyflwNF8CzkebFRfKpO+v6XCnTdmbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=N+T7STK8; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1715451760; a=rsa-sha256; cv=none; b=sIXIwBsmZCMNlPaKQpiy4yY2q0/DO7wfUf+9CwcGjN2NwiZdFS3U01K9SBz/R/iC2TgAdn KK4z92OC0D37C6B5PfqgY6nrOKnGvf0r5hZA9BNKaYO+HNm6a1D1LJzJjHQbjWUUWW6S0T JXgOtShQx4MiMoEuaID7W7t+E7DvMQro9KmXrIOC3EiO/HdzpiDIEVwXIg9R18BwRF/yrg UJA6/0j3MfF8rfEbuFmlRpjkQP7eKRxAk4zDwNscgzyh4fmYU1R8n0PRuR/3FvZwWwTyOh qQjKbOI4xVLSV8Ju98EN1t4sWRbI/6xw+rrI91mpLmENruf08XDnk4N7aEM+mA== 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 4A72E5566E for ; Sat, 11 May 2024 20:22:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5rM8-00074h-ER; Sat, 11 May 2024 14:22:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5rM5-00074X-B3 for emacs-orgmode@gnu.org; Sat, 11 May 2024 14:21:57 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s5rM2-0004Cl-VO for emacs-orgmode@gnu.org; Sat, 11 May 2024 14:21:56 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A256A240101 for ; Sat, 11 May 2024 20:21:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1715451712; bh=h2rdGhXwr/zxXKLgtUBNaAVso1iedSxqfQvsLW7V7HU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=N+T7STK88rJYwMf4WIO0wdMPMP/zdbnbbHirnT3KL/JDyeGRL8tfJpU4sOrrkFHcH pnIRzD8xqoDppgMPJ921hw/Uld0JV1cSzq4lq81zKrJYuSE/oMR2q3MUa9sTAj3aDq 8NXVL+0u2CsKR3v2Xxhxyoreq6jJ4cSDwzwgz0NOUvBXaeqgG2+w/8fYU/KqUEiGVv AadqoQ+x0BU2amRkQ4dEEeOiobpXtPVI1Yk6pBsI0jRViozgZQS4pIKkB3WDLbnFU8 5iWvDk0+AQAeJFH2gdudSS0bRMcuGosXp1GqkyQeTbSjsHz3lcJg0w/FprfEluiS/2 PQazJzgXONWVg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4VcDbz6gQBz9rxL; Sat, 11 May 2024 20:21:51 +0200 (CEST) From: Ihor Radchenko To: Lee Thompson Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Add option to export mixed Setext and ATX-style Markdown headlines In-Reply-To: <87bk5c2pax.fsf@gmail.com> References: <87bk5c2pax.fsf@gmail.com> Date: Sat, 11 May 2024 18:23:21 +0000 Message-ID: <87msowtdgm.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.44 X-Spam-Score: -9.44 X-Migadu-Queue-Id: 4A72E5566E X-Migadu-Scanner: mx13.migadu.com X-TUID: FG5o1rYmfivZ Lee Thompson writes: > This patch adds a new option `'mixed' to `org-md-headline-style' that > when enabled allows for exporting the first two headline levels in > Setext-style, and the rest in ATX-style. I like the mixed style for > certain situations, and I couldn't find a way to export in this manner. But isn't (setq org-md-headline-style 'setext) do exactly what you describe? I just tried with #+options: toc:nil * 1 ** 2 *** 3 **** 4 It exports to One === Two --- 1. Three 1. Four AFAIK, headlines below level 2 simply cannot be exported with setext style, so Org mode already falls back to atx in >2 levels. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at