nimiSlides icon indicating copy to clipboard operation
nimiSlides copied to clipboard

Animate markdown code

Open HugoGranstrom opened this issue 1 year ago • 0 comments

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.

HugoGranstrom avatar Mar 05 '23 12:03 HugoGranstrom