summaryrefslogtreecommitdiffstats
path: root/resources/page/page_markup_test.go
Commit message (Collapse)AuthorAge
* Don't count HTML markup in auto summariesBjørn Erik Pedersen2024-09-10
| | | | | | This commit also fixes a bug where a `</picture>` end tag was wrongly used to detect a end paragraph. This should be very rare, though. Closes #12837
* Add Page.Contents with scope supportBjørn Erik Pedersen2024-08-29
Note that this also adds a new `.ContentWithoutSummary` method, and to do that we had to unify the different summary types: Both `auto` and `manual` now returns HTML. Before this commit, `auto` would return plain text. This could be considered to be a slightly breaking change, but for the better: Now you can treat the `.Summary` the same without thinking about where it comes from, and if you want plain text, pipe it into `{{ .Summary | plainify }}`. Fixes #8680 Fixes #12761 Fixes #12778 Fixes #716