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

automatic summary missing formatting/html #7926

Open
bboehmke opened this issue Nov 3, 2020 · 1 comment
Open

automatic summary missing formatting/html #7926

bboehmke opened this issue Nov 3, 2020 · 1 comment

Comments

@bboehmke
Copy link

bboehmke commented Nov 3, 2020

What version of Hugo are you using (hugo version)?

$ hugo version
Hugo Static Site Generator v0.77.0/extended linux/amd64 BuildDate: unknown

Does this issue reproduce with the latest release?

yes

Description

If a manual summary is used the .Summary contains the HTML formatted manual summary but if the default auto summary is used it only contains the raw text (no markdown/no HTML).

In the template I used {{ .Summary }} and also tried variations with plainify and safeHTML as stated in the documentation but with no changes for the automatic summary.

Manual

Example:

---
title: "manual summary"
date: 2020-10-31T17:00:00+02:00
---

some summary content **with** markdown

<!--more-->

main content

Output:

<p>some summary content <strong>with</strong> markdown</p>

Automatic

Example:

---
title: "auto summary"
date: 2020-10-31T17:00:00+02:00
---

some summary content **with** markdown

main content

Output:

some summary content with markdown
main content
@bep bep modified the milestones: v0.79, v0.80 Nov 27, 2020
@bep bep modified the milestones: v0.80, v0.81 Jan 2, 2021
@bep bep modified the milestones: v0.81, v0.82 Feb 19, 2021
@bep bep modified the milestones: v0.82, v0.83 Mar 21, 2021
@bep bep modified the milestones: v0.83, v0.84 May 1, 2021
@arafel
Copy link

arafel commented Jun 5, 2021

Just FYI - confirmed on latest Hugo, macOS arm64.

(I'm really glad you raised this, I thought for sure I was doing something wrong.)

@bep bep modified the milestones: v0.84, v0.85 Jun 18, 2021
@bep bep modified the milestones: v0.85, v0.86 Jul 5, 2021
@bep bep modified the milestones: v0.86, v0.87, v0.88 Jul 26, 2021
@bep bep modified the milestones: v0.88, v0.89 Sep 2, 2021
@bep bep modified the milestones: v0.89, v0.90 Nov 2, 2021
@bep bep modified the milestones: v0.90, v0.91.0 Dec 13, 2021
@bep bep modified the milestones: v0.91.0, v0.92.0 Dec 22, 2021
@bep bep modified the milestones: v0.117.0, v0.118.0 Aug 30, 2023
@bep bep modified the milestones: v0.118.0, v0.119.0 Sep 15, 2023
@bep bep modified the milestones: v0.119.0, v0.120.0 Oct 4, 2023
@bep bep modified the milestones: v0.120.0, v0.121.0 Oct 31, 2023
@bep bep modified the milestones: v0.121.0, v0.122.0 Dec 6, 2023
@bep bep modified the milestones: v0.122.0, v0.123.0, v0.124.0 Jan 27, 2024
@bep bep modified the milestones: v0.124.0, v0.125.0 Mar 4, 2024
@bep bep modified the milestones: v0.125.0, v0.126.0 Apr 23, 2024
@jmooring jmooring added the Bug label Apr 30, 2024
@bep bep modified the milestones: v0.126.0, v0.127.0 May 15, 2024
@bep bep modified the milestones: v0.127.0, v0.128.0 Jun 8, 2024
@bep bep modified the milestones: v0.128.0, v0.129.0 Jun 21, 2024
@bep bep modified the milestones: v0.129.0, v0.131.0 Jul 22, 2024
@bep bep modified the milestones: v0.131.0, v0.133.0 Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants