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

v-click with external code snippets #2038

Open
alokmenghrajani opened this issue Jan 31, 2025 · 1 comment
Open

v-click with external code snippets #2038

alokmenghrajani opened this issue Jan 31, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@alokmenghrajani
Copy link

alokmenghrajani commented Jan 31, 2025

I would like to show an external code snippet after a click. My slide looks like this:

---

# A title

<<< code.js

<span v-click>
  <p>Guess the output:</p>

<<< code-output.txt

</span>
---

I currently get an error message telling me that the <span> is missing an end tag.

@alokmenghrajani alokmenghrajani added the enhancement New feature or request label Jan 31, 2025
@alokmenghrajani
Copy link
Author

alokmenghrajani commented Jan 31, 2025

It works if I replace the <span> with a <div> + specify the file type (i.e. <<< code-output.txt txt). Maybe it could be more intuitive? I'm fine to close this issue since I have a workaround.

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

No branches or pull requests

1 participant