Skip to content

Conversation

@enihsyou
Copy link
Contributor

@enihsyou enihsyou commented Sep 2, 2025

Shiki supports displaying the ansi special language, and recently, Windows Terminal also supports copying text with ANSI Control Sequences.

By combining the two, one can display colored code blocks in Markdown. The obsidian-shiki-plugin does not handle special languages like ansi/plaintext, and this PR adds support for them.

Preview:
PixPin_2025-09-03_02-56-56

@mProjectsCode
Copy link
Owner

Does Shiki not provide a list of those special languages that we can import?

@enihsyou
Copy link
Contributor Author

enihsyou commented Sep 3, 2025

There is a type called SpecialLanguage in shiki but no const list I can reference.

@mProjectsCode mProjectsCode merged commit 20d11fa into mProjectsCode:master Sep 3, 2025
1 check passed
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.

2 participants