Skip to content

Blockquote ignores custom attributes #244

@TetraTheta

Description

@TetraTheta

This syntax is valid markdown attribute declaration for Hugo:

> Paragraph
{.my-class}

This will add .my-class class to the blockquote. This worked before Enhancements for Markdown tables and blockquotes.

But I found that this behavior is broken now.

> Paragraph 1
{.bq}

> Paragraph 2
{ .bq }

> Paragraph 3
{class="bq"}

> Paragraph 4
{ class="bq" }

Test 2
<figure class="border-start ps-3 py-1 border-primary border-4">
  <blockquote class="blockquote mb-0">
    <p>Paragraph 1</p>
  </blockquote>
</figure>
<figure class="border-start ps-3 py-1 border-primary border-4">
  <blockquote class="blockquote mb-0">
    <p>Paragraph 2</p>
  </blockquote>
</figure>
<figure class="border-start ps-3 py-1 border-primary border-4">
  <blockquote class="blockquote mb-0">
    <p>Paragraph 3</p>
  </blockquote>
</figure>
<figure class="border-start ps-3 py-1 border-primary border-4">
  <blockquote class="blockquote mb-0">
    <p>Paragraph 4</p>
  </blockquote>
</figure>
<p>Test 2</p>

I don't see bq class in either <blockquote> or <figure>, even though all four syntax is valid.

Maybe these lines are faulty.

PS. Table may also faulty, if blockquote lines are faulty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions