HTML: suppress permalink on first p in introduction to an exercisegroup - #3150
HTML: suppress permalink on first p in introduction to an exercisegroup#3150jjrsylvestre wants to merge 1 commit into
Conversation
|
Thanks for catching this one, @jjrsylvestre. No guarantee the first element of an |
|
Reproduced on the sample article, and your diagnosis holds — thanks for chasing this one down. What causes it. The overlap is a run-in heading, not a permalink bug. In Your open question — "might depend on whether a title is present?" It does not. An untitled Suggestion: make the fix in CSS rather than XSL. The project already answers this exact question in one place — .axiom-like, .example-like, .exercise-like, .solution-like, .assemblage-like,
.definition-like, .remark-like, .project-like, .openproblem-like,
.computation-like, .theorem-like, .proof, .case, li, dd {
> .para:first-of-type > .autopermalink { display: none; }
> .introduction > .para:first-of-type > .autopermalink { display: none; }
}
It also makes the suppression track the actual condition. The run-in fires only when the paragraph is the introduction's first child; the XSL match is (No need to regenerate anything under Two more places with the same defect, if you want to sweep them in.
One consequence worth naming: legacy themes compose from Claude Opus 5, acting as a review assistant for Rob Beezer |
|
Sorry, I saw the initial ping but didn't check it out before it dropped off my radar. The suggested CSS sounds like a reasonable quick fix. A cleaner/deeper fix would be to centralize the logic for inline titles (mostly on I can PR that fix if you want it after or instead the one your assistant suggested. |
|
If desired, PR for deeper logic fix is here: |
Title says it all.