From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30866 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'juh' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: manipulating headline level Date: Wed, 29 Jun 2022 10:30:48 +0200 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GbAWcKeP9oQKLSaI" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12920"; mail-complaints-to="usenet@ciao.gmane.io" To: Pandoc Mailinglist Original-X-From: pandoc-discuss+bncBDO25H455QHRBPU36CKQMGQEGRRQWUY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Wed Jun 29 10:30:58 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ed1-f63.google.com ([209.85.208.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1o6T6A-0003AM-Ao for gtp-pandoc-discuss@m.gmane-mx.org; Wed, 29 Jun 2022 10:30:58 +0200 Original-Received: by mail-ed1-f63.google.com with SMTP id r12-20020a05640251cc00b00435afb01d7fsf11411358edd.18 for ; Wed, 29 Jun 2022 01:30:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1656491458; cv=pass; d=google.com; s=arc-20160816; b=eApLE/SAQyy53L9d5J+bTFkRyvBgOmuJAwjZ2qORcXHf8XyUiOW6Us4FZzVqATTRPX aFVjAO7FnZWDkBTqnyOl45aRStN2McJTW/J7LRU5RpkSVINOJSQBY7SHHDp5NQRHAZnd pNOQ9SdrQzxRMtj+7rAfvq581t1D9Pt0kuXozK8S/89ICpr83yvdoShqox5j+2v6ZwBe DTh38jNmDoj2CRNJjr+W7GaT7Y6Xt0JkNYcxXBMMUWrviDM8NGyNQusrcHCvP2aMSWfJ dTnzL29nugycpFbVRTGQtZSdG849/TVTSnRsQ5vp2wLhnhaL35RNT1/57pDOcF/UFm5I qHzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=H69TKuqeyrfOOKhe/9nMmQkOVZdMi77kf3UeVlFcCaA=; b=IEdBwml1pLKVkV58UESIRTNFXaWIowfK6c2+TooTtkssjCWWs2YMsTpfVaz7L7hcvm k7A6pGKl1E+y150GWuZelqDv927at03hJDsMPi8FxVwU05O74hMHDBSOzasU5OeW2F43 poRQ5Vv9gOw049pClpNEjkbYEBN1t6LYa3e/3J67XkARCVqENgs7MXDA0npmx38iVnUt hqGADtSDoFD03ksldVS6PNlvXWnY/k43fvDtH0iZRa0bk4wNCrr53VQA01n+C0LK3Z2Z By/8o7Joj8dlc0Z0qkNFepz2Xx1pAbJ0riI2VSqbN64iGBigq6DYfdrWSWWR2i1NgQ+f AXuw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=ow4E62L5; spf=pass (google.com: domain of juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050:0:465::101 as permitted sender) smtp.mailfrom=juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=date:from:to:subject:message-id:mime-version:content-disposition :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=H69TKuqeyrfOOKhe/9nMmQkOVZdMi77kf3UeVlFcCaA=; b=Kpn5vByCHrWbjqiSVeRoxVkm5kBmVYingSIoH7xgIa692h4ZujKuSPEoIC+Md1guqf CXHqmk1BuXxZoH9gwRak1QfyJK6tVWmmNrOFhnbEYrePpsSCrv/0ZQnsKLz/RzoTq1vF x25KkysPkaP5aVQIq4fRPi9WePjAK3TcniVSUpHTJg4P4nF1iEb9DILueLCUhadqce+T fG1ww2+Ky9iXN7fab+I7J/HEZdPNgutVLLY8BJzUP8R06G/sn6JvdWh9hU5whfnysfnE W58cKfyh17JnBed+n8SsFZBGZYsm5QQsQOTqc6aU78x/L7/JxNPe9GZg136r1s+4mdYY jTHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=H69TKuqeyrfOOKhe/9nMmQkOVZdMi77kf3UeVlFcCaA=; b=Ymj1IREnafdFJmWOg/ghdhVFTxsUoJqE3ShMKolRwhgsWPHUjZkXNtdmg6J5S6GTHQ qZKRiCP8Tqp+742+qFmkm/eozGRfOXqeMs8XuNMFHbivuand/XIT5V/zvNJYV2W7aQ/x HFjMQpuvTeMjCBy3Vr7A6J5GgvcKsibsYPdE6PwdLbbrVSIT4Fd0nW1s4uZ4J7TI4C3l qu51dGTYvYcNZQ39SZXF18DITPJQrLcWw7pbFZsOdJ1ufT7Qgt0qfldymwMMqdKidepl FbddvodhnjYaQmB0y13qG1dIIRmiQT/za04Ggnnr12K9SVcIedlqARlOpbA2VOn8E+1t QvjA== X-Gm-Message-State: AJIora+h4iBGMhaydoDMuVKJFTUMwNEoX2mb6rNosYFgpMYwVlMgSIB2 Rk1hBczhFC6p8VhWjm9zT+c= X-Google-Smtp-Source: AGRyM1sz3XlY/DeALUbZvgSVBVFA9+5gxTzBf6hFB6HOZbHnlH89gTPr2AzX9/Q6UWe917s1RjHNtw== X-Received: by 2002:a05:6402:448c:b0:435:9dcc:b8a5 with SMTP id er12-20020a056402448c00b004359dccb8a5mr2557848edb.287.1656491457989; Wed, 29 Jun 2022 01:30:57 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a17:906:95c1:b0:6ff:45d:c05d with SMTP id n1-20020a17090695c100b006ff045dc05dls499995ejy.5.gmail; Wed, 29 Jun 2022 01:30:53 -0700 (PDT) X-Received: by 2002:a17:907:1b0c:b0:6fe:25bf:b3e5 with SMTP id mp12-20020a1709071b0c00b006fe25bfb3e5mr1969919ejc.689.1656491453363; Wed, 29 Jun 2022 01:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656491453; cv=none; d=google.com; s=arc-20160816; b=I3felJjVLTEGTdRrunt7sz54FqQE1r8vLh90z9uBZryzMfVxzlMj8zbsliyMujAM2P m8Syp8i7Qxjshdfz4IPN+mjikIcXjFhg3/3u2+nZ7Wqgts71nUkzbSihZt2IRDXamHap 2bxiHt5K7YOVA1lAx56QHQSVOQm7EkbmekKX5Iz0jXbfu3LwZT5byz0w+Jrn+hWqAx4u wpBLOuyU0FLMWTwWqA2gxOPdsqN+GKx7f+1EoTj/TuumN51jiB9eQaQxBXIc0vRtOMtv DfJ+GxhEWLQj7Sn4FiGZh5fdlFTJ4Ei+8J8ur8n76N9Ntb2+ndxiPFrHdaxpJqKBjtf3 x4Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:message-id:subject:to:from:date :dkim-signature; bh=3+vrkerJglxwqvDmdSDMbkKQBqtGzJH0z6GBCHnUZsY=; b=CYJmyIorVc7xuAWIj3TFGX6UfXAwZYTUCcUYrEjWLA9EU9pzeWXQDWPq/16wN4YAOv 0/9Ag7VKEPMa2Kd9+ot0eJ2uq0yWYTp3m9A6XA7AWIEgmyDx2f71qjJFyle54pTZPupH K+iCwsENnjiQIJs794dR/BaIf9LxqZJClEoAKFcSfHtsXyep95Z2IUTKgdCgkLHBnwOR VxAiljRJDbNRj8zb1Hc7SXB3/0bK2oKjGI548pGNHMxYoqXf4nfweM9fs+DHcnbfl6Oq EFfjQ54ue/prCRoEIQxTroohFwkLJIbSygzD5XtlKokbMCyFL2C/XcP8kC1ixwsmYKzE QOOQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=ow4E62L5; spf=pass (google.com: domain of juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050:0:465::101 as permitted sender) smtp.mailfrom=juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org Original-Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org. [2001:67c:2050:0:465::101]) by gmr-mx.google.com with ESMTPS id q31-20020a056402249f00b0043780485814si427481eda.2.2022.06.29.01.30.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jun 2022 01:30:53 -0700 (PDT) Received-SPF: pass (google.com: domain of juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050:0:465::101 as permitted sender) client-ip=2001:67c:2050:0:465::101; Original-Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4LXvmp5yMXz9sqj for ; Wed, 29 Jun 2022 10:30:50 +0200 (CEST) Content-Disposition: inline X-MBO-RS-ID: bed31e053c7490888b9 X-MBO-RS-META: ziuazk3ddr6gjtrrtcmuxzmpn9464wen X-Rspamd-Queue-Id: 4LXvmp5yMXz9sqj X-Original-Sender: juh-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@mailbox.org header.s=mail20150812 header.b=ow4E62L5; spf=pass (google.com: domain of juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org designates 2001:67c:2050:0:465::101 as permitted sender) smtp.mailfrom=juh+pandoc-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=mailbox.org X-Original-From: juh Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:30866 Archived-At: --GbAWcKeP9oQKLSaI Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Dear all, I this use-case: Many markdown-files hierarchically ordered in folders. Every file starts with the top-level headline mark "#". I want to convert these files like this: pandoc $(cat outline.txt) -o target.html where outline.txt contains the relative pathes to all files. 00.md 01/00.md 01/01/00.md 01/01/01.md 01/01/02.md Is there a way to tell pandoc that it should regard the headline levels according to the folder structure? So that the first headline in 01/01/00.md is regarded as '###' not as '#'? Or shall I go an other way and write a prebuild script that converts the headline level in these files according to their position in the folder hierarchy? Any hints? juh -- Autoren-Homepage: ......... http://literatur.hasecke.com Satiren & Essays: ......... http://www.sudelbuch.de Privater Blog: ............ http://www.hasecke.eu Netzliteratur-Projekt: .... http://www.generationenprojekt.de