# Table of Content issue

#### Yaroslav

27 Oct, 2018 05:45 PM

// Please enter a detailed description of the issue // Description of the issue:

Disabled export setting:
- Add page breaks before: h1, h2, Footnotes

Enabled export settings:

The exporting appears to the follow PDF (the document have been cut to the first two pages by my own, this is not an issue). But the empty first page (there's should be both H1 as in Swiss template) and glitches with TOC and both H1 content.

Meanwhile if either delete second H1 tag or disable Replace horizontal rules with page breaks and enable Add page breaks before h2 it exports document correct.

// Please enter a list of steps required to reproduce the issue // Steps to reproduce:

// If applicable please attach a sample document that causes the issue for you.

// Configuration (do not edit) Marked 2 962 (Mac App Store)

## macOS Version: 10.14

allowPageBreakInCode: TRUE
bookTxtIsLeanpub: TRUE
summaryMdIsGitBook: TRUE
codeIsPoetry: TRUE
codeCanWrap: TRUE
convertGithubCheckboxes: TRUE
convertYAMLToMMD: TRUE
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 101
defaultProcessor: MultiMarkdown
enableMiniMap: TRUE
excludeBlockQuotesFromCounts: TRUE
excludeFootnotesFromCounts: TRUE
excludeVerbatimFromCounts: TRUE
excludeCaptionsFromCounts: TRUE
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: TRUE
h1IsPageBreak: TRUE
h2IsPageBreak: TRUE
hrIsPageBreak: TRUE
includeMathJax: TRUE
limitTextWidth: TRUE
minimalJavaScript: TRUE
outlineModeExtensions:
permissionGranted: TRUE
printFooterFirstPage: TRUE
processHTMLFiles: TRUE
scrollToEdit: TRUE
shouldDetectCritic: TRUE
shouldHighlightMarkupErrors: TRUE
syntaxHighlight: TRUE
syntaxHighlightOnlyLang: NO

1. Support Staff Posted by Brett on 29 Oct, 2018 03:26 PM

I'm unable to replicate your results using the file provided and the settings you list. Does this issue occur every time you export a paginated PDF?

2. Posted by Yaroslav on 05 Nov, 2018 05:37 PM

Here's the doc the screen of the file settings and the result pdf with the bug (now the TOC are printed on the very first page while the H1 printed on the second one.

Also outline mode set to decimal. And yep, this issue appears every time within the export.

3. Support Staff Posted by Brett on 05 Nov, 2018 07:00 PM

I'm confused. Where do you want the H1 to print?

4. Posted by Yaroslav on 05 Nov, 2018 07:40 PM

I'm expecting that there'll be the follow order of the content:

1. H1 as the title of the document
2. TOC
3. Content of the document by itself.

And I'd could swear that I'd seen this behavior in some simple document.

5. Support Staff Posted by Brett on 06 Nov, 2018 03:13 AM

Table of contents defaults to the top of the document. You can manually place it in the document using the tag:

<!--TOC-->

Any headlines before the TOC are excluded from the contents listing.

Thanks,
Brett

6. Posted by Ярослав on 06 Nov, 2018 06:08 AM

Ah, I get it. May bad, thank you!

С уважением,
Яшин Я.Н.

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

### »

• Копия_Annex_No._1.pdf 34.1 KB
• Annex_No._1.md 1.92 KB

#### Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

# Keyboard shortcuts

### Generic

? Show this help Blurs the current field

### Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

## Recent Discussions

 19 Mar, 2019 07:13 PM Unable to use Marked with Bear 19 Mar, 2019 03:33 AM Marked keeps crashing after updating to 2.5.27 18 Mar, 2019 11:20 AM Missing paragraph 16 Mar, 2019 06:21 PM Import image to marked 2? 14 Mar, 2019 02:05 PM TOC on different frame?

## Recent Articles

 License code has already been utilized Highlight sentences longer than a certain number of words In-app purchase issues (Error Domain=Paddle Code=0 "(null)") How do I retrieve a lost license (direct version) Custom CSS: Writing custom CSS for Marked