-
Notifications
You must be signed in to change notification settings - Fork 990
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
page.summary
only works when isolated on a newline.
#2562
Comments
It might be related to the pulldown-cmark update, I don't see other changes that could be related (other than the regex change but that shouldn't change anything there). Honestly I don't think it was ever intented to work the inline way? We're looking for it in the HTML event and the actual intent was always to have it be on a new line. |
Ah, I see. Well, it was a very nice feature to have, since I don't always want to have a full paragraph in the summary, but maybe just a few sentences. In any case, I think the docs could mention the limitations of the |
I came here because I noticed the same thing, looks like this bug I and others depended on as a feature can no longer be exploited. 😄 |
Bug (or feature removed) introduced in 0.19: getzola/zola#2562
Did you never have issues with unclosed HTML tags by using it inline? Since we just slice the rendered content it's unlikely the HTML would be valid in a lot of cases |
Sorry, I totally forgot to reply. It indeed causes an unclosed |
Bug Report
I've upgraded from Zola 0.18.0 to 0.19.1 today and found that my use of
page.summary
is broken.When writing the
<!-- more -->
tag inline into markdown content, thepage.summary
variable does not get populated. For exampleHello hello <!-- more --> this is a test.
will not work. However,
Hello hello <!-- more --> this is a test
will work. Unfortunately, this will add a newline between
Hello hello
andthis is a test
when usingpage.content
, which is a bummer because now I cant take part of a paragraph as a page summary anymore.It would be cool to get back the functionality for
<!-- more -->
to be inlinable. I assume this might have something to do with the recent fix for footnotes?Environment
Zola version: 0.19.1
The text was updated successfully, but these errors were encountered: