Replies: 1 comment 13 replies
-
Beta Was this translation helpful? Give feedback.
13 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Quarto version 1.5.55
I am writing a lua filter to edit chapter headers in a Quarto book. However my filter doesn't access the level 1 headers in chapters, only in the index.qmd. I can see the problem in the page source but I don't know how to solve it.
_quarto.yml
test.lua
index.qmd
andone.qmd
What I see in the pandoc output. The numbers are the level of the headers encountered. My filter is not "seeing" the level 1 header in the first chapter (
one.qmd
).What I expect to see. Both qmd are identical with the same three headers.
Looking at the page source, I see the problem I think. The
<h1>
with the chapter title is inside a<header>
block. But I don't know how to change my filter to get "inside" the header block. I don't actually care about the h1 headers. I am trying to change the<span class="chapter-number">
that is in<header>
but I don't know how to access it.Here is the page source from
one.html
Here is the page source from
index.html
Beta Was this translation helpful? Give feedback.
All reactions