You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason the page.summary is always null when the <!-- more --> is not on it's own line. This was working before. I build Zola 0.18 and tested it again and my site still builds with this older version.
Environment
Zola version: 0.19.2
Expected Behavior
When using <!-- more --> in the page content, I would expect page.summary to contain a string.
Current Behavior
page.summary is null if <!-- more --> is preceded by anything else on the same line.
Step to reproduce
Test to reproduce that fails. Add to components/markdown/tests/summary.rs
#[test]fnsummary_matches_at_end_of_line(){let rendered = get_rendered(r#"Hello world, with extra content <!-- more -->More content in next paragraph"#,);assert!(rendered.summary.is_some());}
The text was updated successfully, but these errors were encountered:
Bug Report
For some reason the
page.summary
is alwaysnull
when the<!-- more -->
is not on it's own line. This was working before. I build Zola 0.18 and tested it again and my site still builds with this older version.Environment
Zola version: 0.19.2
Expected Behavior
When using
<!-- more -->
in the page content, I would expectpage.summary
to contain a string.Current Behavior
page.summary
isnull
if<!-- more -->
is preceded by anything else on the same line.Step to reproduce
Test to reproduce that fails. Add to
components/markdown/tests/summary.rs
The text was updated successfully, but these errors were encountered: