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

Add Markdown callouts & automatic OS-specific shell commands #17

Merged
merged 6 commits into from
Sep 27, 2023

Conversation

bates64
Copy link
Contributor

@bates64 bates64 commented Sep 25, 2023

Adds two new features for Markdown content.

Callouts

Callouts have the same syntax as Obsidian and GitHub, i.e.

> [!warning] Warning
> Here be dragons!

Terminal tabs

For terminal-framed expressive-code blocks (i.e. languages like shell, bash, or sh, or frame="terminal"), client-side JS checks for lines starting with /opt/cheerp/bin/. If there is a match, this path is replaced with the OS-specific path for the user's OS. The block also gains tabs to change the operating system that was detected, and this is persisted in localStorage.

We can probably expand this in future for npm/pnpm/yarn/bun tabs.

Although nesting is supported in most browsers now, this silences a vite warning and transpiles it to non-nested CSS.
@bates64 bates64 marked this pull request as ready for review September 25, 2023 17:53
Mitigates cache problem
@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 44f77ca
Status:⚡️  Build in progress...

View logs

@bates64 bates64 merged commit 789dbba into main Sep 27, 2023
11 of 12 checks passed
@bates64 bates64 deleted the md-features branch September 27, 2023 15:00
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

Successfully merging this pull request may close these issues.

1 participant