-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Description
Reproduce Steps
Given the following Markdown:
> [!NOTE] Hugo
> [!NOTE] _Hugo_
> The world’s fastest framework for building websites
> [!NOTE] **Hugo**
> [!TIP] **Hugo** FixItand the following render-blockquote-alert.html
{{ warnf "%s\t%s" .AlertTitle .Text }}
Actual results is .AlertTitle lost the trailing > and .Text in a start <p> without a closing tag:
WARN Hugo <p>
WARN <em>Hugo</em <p>The world’s fastest framework for building websites</p>
WARN <strong>Hugo</strong <p>
WARN <strong>Hugo</strong> FixIt <p>Expected results (complete .AlertTitle and .Text):
WARN Hugo <p></p>
WARN <em>Hugo</em> <p>The world’s fastest framework for building websites</p>
WARN <strong>Hugo</strong> <p></p>
WARN <strong>Hugo</strong> FixIt <p></p>BTW, if content body of alert is empty,
.Textreturnnilseems better.
What version of Hugo are you using (hugo version)?
hugo v0.135.0+extended darwin/arm64 BuildDate=2024-09-27T13:17:08Z VendorInfo=brew
Does this issue reproduce with the latest release?
Yes