hbstack / hb

The core module of HB framework, which automatically load and compile module's TypeScript and SCSS.
https://hbstack.dev/
MIT License
16 stars 4 forks source link

Blockquote ignores custom attributes #244

Closed TetraTheta closed 1 week ago

TetraTheta commented 1 week ago

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.