We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following Markdown:
> [!NOTE] Hugo > [!NOTE] _Hugo_ > The world’s fastest framework for building websites > [!NOTE] **Hugo** > [!TIP] **Hugo** FixIt
and the following render-blockquote-alert.html
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:
.AlertTitle
>
.Text
<p>
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, .Text return nil seems better.
nil
hugo version
hugo v0.135.0+extended darwin/arm64 BuildDate=2024-09-27T13:17:08Z VendorInfo=brew
Yes
The text was updated successfully, but these errors were encountered:
@bep Excuse me, could you take a look at this issue, please! 🙏
I think these problems should be in the following two places, but I am not familiar with go and don't know how to correct them. Can anyone help me?
hugo/markup/goldmark/blockquotes/blockquotes.go
Lines 87 to 92 in ffb41d1
Lines 162 to 177 in ffb41d1
Sorry, something went wrong.
No branches or pull requests
Reproduce Steps
Given the following Markdown:
and the following
render-blockquote-alert.html
Actual results is
.AlertTitle
lost the trailing>
and.Text
in a start<p>
without a closing tag:Expected results (complete
.AlertTitle
and.Text
):What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
The text was updated successfully, but these errors were encountered: