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

Plugin fails to parse ++> into <details> with open state #4

Open
RenegadeScooter opened this issue Apr 26, 2024 · 0 comments
Open

Plugin fails to parse ++> into <details> with open state #4

RenegadeScooter opened this issue Apr 26, 2024 · 0 comments

Comments

@RenegadeScooter
Copy link

I am learning to use Eleventy and this looked like a useful plugin for its markdown-it parser so I added it to my project.
Line from my package.json: "markdown-it-collapsible": "^2.0.2",


Copied this code from the README

++> Click me!
Hidden text
++>

and pasted it into my Markdown document, only for it to fail to parse as shown
image

<p>++&gt; Click me!
Hidden text
++&gt;</p>

However, changing the > to + like this

+++ Click me!
Hidden text
+++

resulted in a <details> element without an open default state as normal
image

<details>
<summary><span class="details-marker"></span>Click me!</summary><p>Hidden text</p>
</details>

What's going on here?

@RenegadeScooter RenegadeScooter changed the title Plugin fails to parse ++> into details with open state Plugin fails to parse ++> into <details> with open state Apr 26, 2024
@RenegadeScooter RenegadeScooter changed the title Plugin fails to parse ++> into <details> with open state Plugin fails to parse ++> into <details> with open state Apr 27, 2024
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