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

Inline code is not highlighted #2805

Open
BobbieGoede opened this issue Oct 8, 2024 · 1 comment
Open

Inline code is not highlighted #2805

BobbieGoede opened this issue Oct 8, 2024 · 1 comment

Comments

@BobbieGoede
Copy link
Member

Environment

n/a (could not copy output in stackblitz)

Reproduction

https://stackblitz.com/edit/github-c2mjun?file=content%2Findex.md

Describe the bug

This can be seen in the documentation as well:

Image

The code/preview implies it should have syntax highlighting.

Additional context

Somehow I could not find an existing issue about this 😅 sorry if this is a duplicate!

Logs

No response

@farnabaz
Copy link
Member

Highlight is disabled by default, you need to enable it in nuxt.config.ts:

  content: {
    highlight: {
      theme: 'github-light'
    }
  }

Also for inline code you need to specify the language:

`const y: string = "Hello, world!";`{lang="ts"}

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

No branches or pull requests

2 participants