-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Invalid p-tag wrapping for nested shortcodes #1387
Comments
Add test2.md page to show that shortcode syntax without Markdown rendering renders this case fine. Having shortcodes where the entire content is wrapped with `div` doesn't make sense to send through Blackfriday. See gohugoio/hugo#1387
I added a PR for the test case showing a workaround -- or I would call it a solution for this case. I will, eventually, figure out where that |
OK, I think I see the problem. |
ALSO - fix snippets. It seems hugo has a bug: gohugoio/hugo#1148 gohugoio/hugo#1387 which is causing YAMLs not to render properly when there's a blank line. removed blank lines.
Also see #1387 |
I know ... now. But there is another one ... similar. |
👍 |
This issue has been automatically marked as stale because it has not been commented on for at least four months. The resources of the Hugo team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, and you feel that it is still valuable, please open a proposal at https://discuss.gohugo.io/. This issue will automatically be closed in four months if no further activity occurs. Thank you for all your contributions. |
Note/Update: This issue is marked as stale, and I may have said something earlier about "opening a thread on the discussion forum". Please don't. If this is a bug and you can still reproduce this error on the latest If this is a feature request, and you feel that it is still relevant and valuable, please tell us why. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
To fix issue #1148 I updated to master branch, and now I have a somewhat similar issue.
When I use 2 levels of shortcode, whatever come after
{{ .Inner }}
is wrapped with a<p>
. I created a project to reproduce the problem: https://raw.githubusercontent.com/bclermont/hugo-issue-1387/In this example all shortcode are simple
<div>
like that:https://github.com/bclermont/hugo-issue-1387/blob/master/layouts/shortcodes/column.html
and the following markdown:
https://raw.githubusercontent.com/bclermont/hugo-issue-1387/master/content/test.md
render as:
Note the
<p></div></p>
.The text was updated successfully, but these errors were encountered: