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

Nested fenced divs parsing bug #4281

Closed
kazalex opened this issue Jan 20, 2018 · 2 comments
Closed

Nested fenced divs parsing bug #4281

kazalex opened this issue Jan 20, 2018 · 2 comments

Comments

@kazalex
Copy link

kazalex commented Jan 20, 2018

Input:

:::: {.a}

- ::: {.b}
  text
  :::
  ::: {.c}
  text
  :::

::::

Output:

<div class="a">
<ul>
<li>::: {.b} text</li>
</ul>
</div>
<div class="c">
<p>text</p>
</div>
<p>::::</p>

1.First nested div (class .b) is not recognized
2.Second nested div (class .c) is recognized but placed outside of ul and li

@jgm
Copy link
Owner

jgm commented Jan 20, 2018

Simpler case:

::: {.a}
- ::: {.b}
  :::
:::

@jgm
Copy link
Owner

jgm commented Jan 20, 2018

Note that this version works okay:

% pandoc -t native
<div class="a">
- <div class="b">
  </div>
</div>
[Div ("",["a"],[])
 [BulletList
  [[Div ("",["b"],[])
    []]]]]

@jgm jgm added the bug label Jan 20, 2018
@jgm jgm closed this as completed in ac08a88 Jan 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants