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

Throw an error when shortcode is expected to be closed #10675

Closed
bep opened this issue Jan 31, 2023 · 1 comment
Closed

Throw an error when shortcode is expected to be closed #10675

bep opened this issue Jan 31, 2023 · 1 comment
Assignees
Milestone

Comments

@bep
Copy link
Member

bep commented Jan 31, 2023

See #10671

markdown

{{< sc >}}

Bar

layouts/shortcodes/sc.html

{{ .Inner  }}

We throw an error in the other case (a closing tag without .Inner), but the above just fails silently (or: all content below is added as .Inner).

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant