From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id 4IV1M5vnKGbDBwEAqHPOHw:P1 (envelope-from ) for ; Wed, 24 Apr 2024 13:06:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 4IV1M5vnKGbDBwEAqHPOHw (envelope-from ) for ; Wed, 24 Apr 2024 13:06:03 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=GZY6yJSi; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713956763; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=oYVcPZbq9oOZAnXNi8pLysUGu5bigs0ba6wc/Xi43u4=; b=U0OJZ0zxpE08WAc3XdP7Y0X4rpLQFhLt30DF9Lbwm6zBuWUkTgEUBdb8rFst/H5JoPOWrc xnoTMTQ+mG0VvQxkZGOF8vsK/oPX0DQ6LXg2LSE50cyzuK7wCT0QSoyIK7ks+nacmLmNPQ Vi0D0mJBfIMXXUxHFwVsKSpF3SArvNvDqYd1NuQ/iIFW6nz0p2FCObv4OQ7O+To+0Lb168 Ek/HSMNcoXl9e+RfuKuUwafRsN/8bDDkdYQSxLqjy37UFjQYoga4MOIozuB81+0fyoFYNH uMK3zJTm6tYvAAgguQnpBr++iAVTIqqee2BXXKW0AzRCnasoIn55sg/jcarX5g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713956763; a=rsa-sha256; cv=none; b=IV1Y365DBqxoCUDX1QxIH+R7YJ0xfZmKp6jfvTg6aM8WboYGBU1b1Koae/gFYaCKa2F8KO gIpcnPc0LnIIVL0YHPeJigqnc8heMzUMpV+cqMmIJUMkXapJmfqoYCusW/1T/dQem1juP8 3MjOSntDzRDxueQIepo8m7+jhcpTQuYelPGTh+weiHttZIKaxdnYwOXCsIjxPaewYcE6qs 6GMyG6k4tXJrlsZ0YzoPpwZmn4Hln8MYU9slZe6xOzCKBqOrDxfmqpzxCVFM08O8JxBJbk STkbHivv6SK3+gfl3sZ23GuEvCX6yn7+KonCTAm/2HPu34ZMxJpXOROUqCQBMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=GZY6yJSi; 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=gmail.com 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 951CA1FBA3 for ; Wed, 24 Apr 2024 13:06:03 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rzaRI-0000Ay-AF; Wed, 24 Apr 2024 07:05:24 -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 1rzaR5-0000AE-Qh for emacs-orgmode@gnu.org; Wed, 24 Apr 2024 07:05:15 -0400 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rzaR3-0004dC-Nc for emacs-orgmode@gnu.org; Wed, 24 Apr 2024 07:05:11 -0400 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-51b09c3a111so5419219e87.1 for ; Wed, 24 Apr 2024 04:05:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713956706; x=1714561506; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=oYVcPZbq9oOZAnXNi8pLysUGu5bigs0ba6wc/Xi43u4=; b=GZY6yJSiQkhK9grDeoaRCdCoXzBl7F9y8UPiLAaRhL2KosuF1evvC6zQDu+LyqeOip DvAVPSLDjSlxwN5md/5Jkl2aDzid2+3En02xLcnbPkZiyK7MKon7Z60SLpLW8YkrLsz6 rMdIQTv74P4DC659/n7M3Ojqgxd+vQk5VCCx95C5ORTYCC8VLYZW//lGSSqNFufciUZe AbOkoySkPSU4Ppe/l7yyxDEB5InLM3Bwx2+K/euLqKUe6hzKamizshw/BqfQ4k8fc5VQ 6Ahya9EU0tyFJDQMn70xJtRK+SP8O0w+0oM/NjyVvZCUF3AER1VnmHei/wS+Tv+Px0s/ RZJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713956706; x=1714561506; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=oYVcPZbq9oOZAnXNi8pLysUGu5bigs0ba6wc/Xi43u4=; b=B1juENHCg6AWXGo3Elb2fG+IgCO+loHFi1AoclDQc0/kcxXkTaB4njn88Gte0pTGgK M5PImwz/v3oM3ZwR3eb0aGZuU8yyF/X+caLzLt15UsRM7zxxW9Y0+HC5LyEX3egXn/cV zzUneiIu1B+JlTGCtwPrkR2udLDcyZwroE6ESsMvBHlQGjI1rMsiOJrlcBRlZlUbQH7Z +jWNykPSrHpKR6Eob+LB7aoBoHlfzyp4H/tgO0WucDciUh3k8DnOHJ0dikMBg59CveuT xoP+jugNkkNOkHAkkkJvfxcLROxuxCIBDFcuIjOheGuRDt2d+CtiN1bRfq9NPMLXjRRb FYbg== X-Gm-Message-State: AOJu0Yx780TKXKfcnZksk+zq1tgEBiil/fznZPmrfVQaFsT2SdXg3E7j 7feNLwe4maCARgh7GYJAvI18CrQyuqvwG2d2hmdwxJjPAPSnn4M9WyYLTtOfZJfyYxIdZ9aM5nM g8oqhS+Rh67tPh8l30uYeOdt1EOUpxYnplSs= X-Google-Smtp-Source: AGHT+IFQqrS4uqKwL6xmVfqe8En1E9kCDQneJq74FQCYLxH0+yuoKq30zAZGmb1ivqpb1nJkIxfzLbQisnDY44sV9H4= X-Received: by 2002:ac2:546b:0:b0:518:bc7c:413a with SMTP id e11-20020ac2546b000000b00518bc7c413amr1457033lfn.69.1713956705173; Wed, 24 Apr 2024 04:05:05 -0700 (PDT) MIME-Version: 1.0 From: Matt Price Date: Wed, 24 Apr 2024 07:04:53 -0400 Message-ID: Subject: keeping subtree heading on export To: Org Mode Content-Type: multipart/alternative; boundary="000000000000928d010616d5a40c" Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=moptop99@gmail.com; helo=mail-lf1-x12f.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: -6.76 X-Spam-Score: -6.76 X-Migadu-Queue-Id: 951CA1FBA3 X-Migadu-Scanner: mx12.migadu.com X-TUID: shyMBu4aD0Ik --000000000000928d010616d5a40c Content-Type: text/plain; charset="UTF-8" I'm writing a primitive exporter for jupyter-book , which is a neat way to maintain static documentation and executable jupyter notebooks from the same source files. The source files are written in Myst flavored markdown , so I started with a simpleminded fork of the gfm exporter . What I'd really like, though is something more like ox-hugo , which maintains a whole blog in a single org file. For this to work, I need to export each individual page of the "book" to its own markdown page. However, jupyter-book expects to find the title of the page in the initial first-level heading. So I'd like to retain the subtree "title" as a first-level heading, and demote the remaining headings to their original state within the larger org document. Does anyone know of an existing exporter that already does this, from which I can steal? Or if not, how would you suggest I go about doing this? Thanks, Matt --000000000000928d010616d5a40c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm writing a primitive exporter for jupyter-book, which is = a neat way to maintain static documentation and executable jupyter notebook= s from the same source files.=C2=A0 The source files are written in Myst flavored markdown, so I started with a simpleminded fork of the= gfm exporter. What I'd really like, though is something more like = ox-hugo, which maint= ains a whole blog in a single org file.=C2=A0 For this to work, I need to e= xport each individual page of the "book" to its own markdown page= .=C2=A0 However, jupyter-book expects to find the title of the page in the = initial first-level heading.=C2=A0 So I'd like to retain the subtree &q= uot;title" as a first-level heading, and demote the remaining headings= to their original state within the larger org document.=C2=A0

Does anyone know of an existing exporter that already doe= s this, from which I can steal? Or if not, how would you suggest I go about= doing this?

Thanks,

Matt

--000000000000928d010616d5a40c--