public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* manipulating headline level
@ 2022-06-29  8:30 'juh' via pandoc-discuss
  2022-06-29 12:08 ` Albert Krewinkel
  0 siblings, 1 reply; 8+ messages in thread
From: 'juh' via pandoc-discuss @ 2022-06-29  8:30 UTC (permalink / raw)
  To: Pandoc Mailinglist

[-- Attachment #1: Type: text/plain, Size: 926 bytes --]

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-06-30 14:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29  8:30 manipulating headline level 'juh' via pandoc-discuss
2022-06-29 12:08 ` Albert Krewinkel
     [not found]   ` <87ilojbqsp.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-06-29 16:18     ` BPJ
     [not found]       ` <CADAJKhAWO5D23ChNizSGSuO-ouwOibBFTs0MmyBwJPGpQZYsVg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-06-30  8:43         ` 'juh' via pandoc-discuss
2022-06-30 12:11           ` Albert Krewinkel
     [not found]             ` <871qv6bb4n.fsf-9EawChwDxG8hFhg+JK9F0w@public.gmane.org>
2022-06-30 14:10               ` 'Jan Ulrich Hasecke' via pandoc-discuss
     [not found]                 ` <edfc1a65-e8ee-7e0e-f953-a4d75b19d8cb-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org>
2022-06-30 14:37                   ` 'Jan Ulrich Hasecke' via pandoc-discuss
     [not found]                     ` <da9e1abc-97aa-339f-0eb6-720a5072e653-cl+VPiYnx/1AfugRpC6u6w@public.gmane.org>
2022-06-30 14:43                       ` Albert Krewinkel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).