Skip to content

Conversation

donsbot
Copy link
Contributor

@donsbot donsbot commented Jul 25, 2024

The GitHub-embedded syntax highlighting for markdown uses linguist to detect which language to use. For Kotlin there's no alias kt so syntax highlighting doesn't work. Use 'kotlin' to correctly pick up the language of the signature blocks.

c.f. https://github.com/github-linguist/linguist/blob/master/lib/linguist/languages.yml#L3660 https://github.com/github-linguist/linguist/blob/master/lib/linguist/languages.yml#L3660

Test plan

reindex and check correct code is used.

Regenerate snapshot tests (how?)

The GitHub-embedded syntax highlighting for markdown uses `linguist` to
detect which language to use. For Kotlin there's no alias `kt` so syntax
highlighting doesn't work. Use 'kotlin' to correctly pick up the
language of the signature blocks.

c.f. https://github.com/github-linguist/linguist/blob/master/lib/linguist/languages.yml#L3660
https://github.com/github-linguist/linguist/blob/master/lib/linguist/languages.yml#L3660

Test plan:
- tests pass
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