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

Hugo 0.89.1 drops line after empty line in indented code fence in list item #9137

Closed
dengste opened this issue Nov 6, 2021 · 2 comments · Fixed by #9143
Closed

Hugo 0.89.1 drops line after empty line in indented code fence in list item #9137

dengste opened this issue Nov 6, 2021 · 2 comments · Fixed by #9143

Comments

@dengste
Copy link

dengste commented Nov 6, 2021

I am using the following markdown:

* This is a list item
    ```
    This is a test

    This line will be dropped.
    This line will be displayed.
    ```

Hugo 0.89.1 will not render the line following the empty line in the indented code fence. It will be displayed if either the empty line is removed, the code fence is not indented, or if the list item is removed.

This used to render fine with 0.88.1, so this is a regression. I could reproduce this problem using the 'quickstart' guide with the Ananke theme right away.

What version of Hugo are you using (hugo version)?

$ hugo version
hugo v0.89.1-B6A4AE4A linux/amd64 BuildDate=2021-11-05T15:44:32Z VendorInfo=gohugoio

Does this issue reproduce with the latest release?

Yes

@dengste dengste changed the title Hugo 0.89.1 drops line in indented code fences in list item Hugo 0.89.1 drops line after empty line in indented code fence in list item Nov 6, 2021
@bep bep added the Bug label Nov 6, 2021
@bep bep added this to the v0.89.2 milestone Nov 6, 2021
@bep bep added the Upstream label Nov 6, 2021
@bep
Copy link
Member

bep commented Nov 6, 2021

This fixes it:

go get: downgraded github.com/yuin/goldmark v1.4.2 => v1.4.1

@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 Jan 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants