Skip to content

remove h1 of the first child page of a url-less section#99

Open
michalfapso wants to merge 1 commit intodomWalters:developfrom
michalfapso:fea_material_nav_first_child_heading_removed
Open

remove h1 of the first child page of a url-less section#99
michalfapso wants to merge 1 commit intodomWalters:developfrom
michalfapso:fea_material_nav_first_child_heading_removed

Conversation

@michalfapso
Copy link
Copy Markdown

To ensure compatibility with mkdocs-material.

Fixes the following case:

nav:

  • intro.md
  • 'Section A':
    • section_a/index.md
    • section_a/chapter1.md
    • section_a/chapter2.md
    • 'Subsection X':
      • section_a/subsection_x/index.md
      • section_a/subsection_x/chapter1.md

With mkdocs-material, the main heading (e.g. "# Section A") in section_a/index.md and in section_a/subsection_x/index.md is hidden. This patch hides it in the pdf output too.

To ensure compatibility with mkdocs-material.

Fixes the following case:

nav:
  - intro.md
  - 'Section A':
    - section_a/index.md
    - section_a/chapter1.md
    - section_a/chapter2.md
    - 'Subsection X':
      - section_a/subsection_x/index.md
      - section_a/subsection_x/chapter1.md

With mkdocs-material, the main heading (e.g. "# Section A") in
section_a/index.md and in section_a/subsection_x/index.md is hidden.
This patch hides it in the pdf output too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant