Skip to content

Animate markdown code #15

Open
Open
@HugoGranstrom

Description

@HugoGranstrom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions