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

Animate markdown code #15

Open
HugoGranstrom opened this issue Mar 5, 2023 · 0 comments
Open

Animate markdown code #15

HugoGranstrom opened this issue Mar 5, 2023 · 0 comments

Comments

@HugoGranstrom
Copy link
Owner

This is an idea by @srozb.

Now that nimib has support for highlighting all kinds of languages in markdown, it would be nice if we could animate them as well like animateCode. The API would be the same but accept a language and a string instead of a code block:

animateMdCode("css", 1..2, 3, 4..5): """
.reveal img {
  max-height: 95vh;
}
"""

This should share the same internal machinery as animateCode, with the only exception being that the code is given directly instead of read from source.

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