-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
(typescript) optional property not highlighted correctly #3613
Labels
Comments
In TS can you write: |
Yes. That is a valid syntax. |
Bumping it up.
@joshgoebel yes, it is used all over the place in typescript. More often without space in between key name and a question mark. |
2 tasks
@joshgoebel i believe i've managed to fix this please review #4114 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue
optional property (
prop?: number
) not highlighted correctly.Which language seems to have the issue?
TypeScript
Are you using
highlight
orhighlightAuto
?highlight? Using highlightjs through revealjs VSCode extension.
Sample Code to Reproduce
Result (using Github Dark):
Expected behavior
As seen above, rendered by Github
The text was updated successfully, but these errors were encountered: