-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Description
Here's the repro case: https://github.com/jakebailey/hugo-goat-bug
+++
date = '2025-04-11T09:06:44-07:00'
title = 'goat bug example'
+++
```goat
+---------------+
| Hello, world! |
+---------------+
```
```
This is just another code block!
```
{{< details summary="Expand me" >}}
```
This info is collapsed by default!
```
{{< /details >}}
Now, something else:
```go
package main
```
```
This is just another code block!
```
{{< details summary="Expand me" >}}
```
This info is collapsed by default!
```
{{< /details >}}In 0.145, things work as expected; goat only runs on the goat blocks. But in 0.146, the goat block appears to apply to all of the other blocks too!
- Before: https://github.com/jakebailey/hugo-goat-bug/blob/7f744a768a0a15652fec4aa0ec85f4df9246ce6e/public-v0.145/posts/bug/index.html#L185
- After: https://github.com/jakebailey/hugo-goat-bug/blob/7f744a768a0a15652fec4aa0ec85f4df9246ce6e/public-v0.146/posts/bug/index.html#L312
This also bisects to #13541.
What version of Hugo are you using (hugo version)?
$ hugo version hugo v0.146.1+extended linux/amd64 BuildDate=unknown
Does this issue reproduce with the latest release?
Yes
Jeija and yuanji-dev