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

Pages with summaries generate invalid markup (nested <p>) in HTML output #6

Open
nyanpasu64 opened this issue Jun 15, 2022 · 0 comments

Comments

@nyanpasu64
Copy link

Looking at the source code of https://tale-zola.netlify.app/, checking Math Typesetting, I noticed that the markup nests a wrapper

and the page's own

. This is invalid under HTML rules for some reason, and instead results in Firefox parsing it as an empty

(presumably extending to the first real

in the post), the post contents, then an empty

afterwards.

The best idea I have for fixing this is that you should edit templates/macros.html to remove the outermost

for posts with page.summary (which is HTML).

Alternatively is it possible to synthesize summaries from truncating posts, and properly close HTML tags, so you can remove striptags from the alternative path?

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

No branches or pull requests

1 participant