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

Using in ordered list leads to wrong rendering #10

Open
koppor opened this issue Nov 5, 2022 · 0 comments
Open

Using in ordered list leads to wrong rendering #10

koppor opened this issue Nov 5, 2022 · 0 comments

Comments

@koppor
Copy link

koppor commented Nov 5, 2022

When I put following markdown

---
layout: null
---
# Test

{% figure caption:"First Figure" %}
Content of first figure
{% endfigure %}

1. First step
2. Second step with figure

   {% figure caption:"Second Figure" %}
   Content of second figure
   {% endfigure %}

3. Third step

I would expect the second figure being nested in the second item - and that the third item is rendered as third item.

The result, however, is different:

grafik

<h1 id="test">Test</h1>

<figure>
Content of first figure
  <figcaption>First Figure</figcaption>
</figure>

<ol>
  <li>First step</li>
  <li>
    <p>Second step with figure</p>

    <figure>
Content of second figure

</figure>
  </li>
</ol>
<figcaption>Second Figure</figcaption>
<p>&lt;/figure&gt;</p>

<ol>
  <li>Third step</li>
</ol>

CC @grauschnabel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant