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

.RenderShortcodes misbehaves when it's identified or inside a code block #12457

Open
bep opened this issue May 3, 2024 · 0 comments
Open

.RenderShortcodes misbehaves when it's identified or inside a code block #12457

bep opened this issue May 3, 2024 · 0 comments
Assignees
Labels
Milestone

Comments

@bep
Copy link
Member

bep commented May 3, 2024

If you in a "include" type of shortcode when using the {{% syntax to use it, indent the {{ $p.RenderShortcodes }} with 4 characters:

     {{ $p.RenderShortcodes }}

You end up with a {{__hugo_ctx pid=3214}} similar code in the output.

Note that I would say that the above is (almost?) always a signal to fix/adjust your template.

@bep bep self-assigned this May 3, 2024
@bep bep removed the NeedsTriage label May 3, 2024
@bep bep added this to the v0.125.6 milestone May 3, 2024
@bep bep changed the title .RenderShortcodes misbehaves when it's identified as a code block .RenderShortcodes misbehaves when it's identified or inside a code block May 3, 2024
@bep bep modified the milestones: v0.125.6, v0.125.7 May 3, 2024
@bep bep modified the milestones: v0.125.6, v0.127.0 May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant