Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Alert shortcode in markdown not playing nice when indented #1672

@chalin

Description

@chalin

Even after #941 is applied, this test markdown (test.md):

- Some text
  {{< alert title="Warning" color="warning" >}}
  This is a **warning**.
  {{< /alert >}}
- Some text
  {{% alert title="Warning" color="warning" %}}
  This is a **warning**.
  {{% /alert %}}

Yields this:

image

According to Indentation fixes for shortcode blocks of Hugo 0.100.0, both of the above alerts should render properly in markdown. Probably best to create a small test case and post it to Hugo discussions.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions