Skip to content

plaintext blocks after goat block are turned into goat blocks in v1.146 #13593

@jakebailey

Description

@jakebailey

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!

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions