danburzo / percollate

A command-line tool to turn web pages into readable PDF, EPUB, HTML, or Markdown docs.
https://danburzo.ro/projects/percollate/
MIT License
4.25k stars 165 forks source link

H1 missing from table of contents #171

Open Slience2015 opened 3 months ago

Slience2015 commented 3 months ago

Environment

Description

截屏2024-05-19 09 21 09 When converting to pdf, the h1 here is always not in toc.

css: `nav { page-break-before: always; background-color: #f0f0f0; padding: 10px; border-radius: 5px; }

nav a { display: block; margin-bottom: 5px; text-decoration: none; color: #333; transition: color 0.3s; }

nav a:hover { color: #007bff; }

nav ul { list-style: none; margin: 0; padding: 0; }

nav ul li { margin-left: 20px; }

nav ul li a { text-decoration: none; }

nav ul li a::before { content: "• "; }

nav ul li a:link { color: #000; }

a:after { display: none; }`

danburzo commented 3 months ago

Hello @Slience2015, can you provide the full command you’re using? Is the issue that, when bundling several items in a single PDF, one of the titles does not show up in the table of contents?