Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H1 missing from table of contents #171

Open
Slience2015 opened this issue May 19, 2024 · 1 comment
Open

H1 missing from table of contents #171

Slience2015 opened this issue May 19, 2024 · 1 comment
Labels
question Further information is requested

Comments

@Slience2015
Copy link

Environment

  • Operating System:
  • node v21.7.3:
  • npm 10.5.0:

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
Copy link
Owner

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?

@danburzo danburzo added the question Further information is requested label May 21, 2024
@danburzo danburzo changed the title toc H1 missing from table of contents May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants