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

feat: asciinema with custom glyph font #242

Merged
merged 2 commits into from Oct 6, 2022
Merged

Conversation

vonPB
Copy link
Member

@vonPB vonPB commented Oct 6, 2022

Usage

Place your .cast file in static/casts.

Now you can simply use the following in any markdown file:

# Installation

<Asciinema src="/casts/example.cast" rows={50} idleTimeLimit={3} preload={true} />

# Pre.....

Icon issues

if some custom icons are not appearing restart the dev server. This will re-run a script extracting the icons needed from all .cast files.

Screenshot 2022-10-06 185059

Performance

The custom font function used on build (only at startup for dev) is not quite as efficient in regards to size as the orginal in py, but should still good enough for now (11,1kb vs 4,7kb).

@MAHcodes MAHcodes merged commit e609d2d into LunarVim:master Oct 6, 2022
@vonPB vonPB deleted the asciinema branch October 6, 2022 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants