how to disable pandoc reader option

Viewed 84

I've looked and looked but can't find the answer. (I have read the manual! Cover to cover. Many times. But I may still have missed it ...) How do I disable a pandoc reader option? The specific one I'm after is --file-scope. From Pandoc's behaviour it is clear that --file-scope is on. I have a doc with over a thousand footnotes to convert (to epub3) split up into chapters in markdown and the author numbered them consecutively thru the the whole document. Pandoc is starting the numbering over for each section/"file"/chapter. Alternatively, there's no specific command controlling footnote numbering, is there?

Thanks very much for any useful answers in advance Mike

1 Answers

What you are seeing isn't the effect of --file-scope (which is disabled by default), but of pandoc's feature that it splits the document into different files (within the epub) at the chapter level. In each file, footnotes are reset and start again from "1". This is a long-standing issue in pandoc.

The only workaround I see is to call pandoc with --shift-heading-level-by=1, but that will change your document structure. External tools are needed to fix this.

Aside: splitting into files can be increased via --epub-chapter-level, but not reduced.

Related