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
The combined output will be wrapped in a <p> tag if you do this:
{{<itemtext="Item1" >}}
{{<itemtext="Item2" >}}
Neither the combined output nor the individual ouput will be wrapped in a <p> tag if you do this:
{{<itemtext="Item1" >}}
{{<itemtext="Item2" >}}
I've run into this before. The fact that you are wrapping <li> tags with a <ul> tag is irrelevant. You can reproduce the behavior with shortcodes that render text only.
Is this a bug or a feature? In some cases I have taken advantage of the behavior, in others I have had to add a blank line between the calls in order to achieve the desired output.
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes
Setup
A single page is calling a sequence of shortcodes
The plugin structure has the baseof file which wraps ul-tags around the content. The content is a series of shortcodes resulting in series of li-tags.
Expected resulting code:
Actual resulting code:
Full test case
For whatever reason GitHub refused to upload either .gz or .zip, so the test case is uploaded to the repository https://github.com/didenko/hugo_test_case_extra_p
The text was updated successfully, but these errors were encountered: