shikijs / shiki

A beautiful yet powerful syntax highlighter
http://shiki.style/
MIT License
9.91k stars 361 forks source link

Rehype: default language #691

Closed fuma-nama closed 3 months ago

fuma-nama commented 4 months ago

Clear and concise description of the problem

When no language specified, the codeblock will not be processed by Shiki.

Suggested solution

Add a defaultLanguage option to Rehype Integration, when no language specified, use the default language as a fallback.

Alternative

No response

Additional context

No response

Validations

Contributes