imfing/hextra

Indented callouts rendered incorrectly

AlekseiAdamov opened this issue ยท 4 comments

Description

Callouts with indentation (e.g. in lists) are rendered incorrectly.

Steps To Reproduce

  1. Create a list.
  2. In a list item put a callout with the same indentation as the item's text.

Expected Behavior

Callout is rendered correctly.

Actual Behavior

Callout is rendered incorrectly.

Screenshots

indented-callout

Markdown code for this screenshot:

## Normal callout

{{< callout emoji="๐Ÿ‘ทโ€โ™‚๏ธ" >}}
  Work in progress.
{{< /callout >}}

## Indented callout

- List item 1

  {{< callout emoji="๐Ÿ‘ทโ€โ™‚๏ธ" >}}
    Work in progress.
  {{< /callout >}}

- List item 2

Environment

  • Hugo Version: 0.120.4
  • Browser/OS: Chrome 122.0.6261.95/Windows, Edge 122.0.2365.66/Windows
  • Theme Version: v0.7.0

Additional Context

I see #140 and PR #141 but it was before v0.7.0.

Can you post the raw markdown code to reproduce the issue?

Can you post the raw markdown code to reproduce the issue?

Sorry, updated the issue.

Great! Thank you!

Please wait for the next release to include this fix