-
Notifications
You must be signed in to change notification settings - Fork 43
Manual type highlighting in a code block #193
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingdifficulty: mediumA typical task that maybe a bit time consuming or just requires to use a bit advanced algorithm.A typical task that maybe a bit time consuming or just requires to use a bit advanced algorithm.enhancementNew feature or requestNew feature or requestest. time: < 1 weekA loose time estimation of less than one week of work.A loose time estimation of less than one week of work.
Milestone
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdifficulty: mediumA typical task that maybe a bit time consuming or just requires to use a bit advanced algorithm.A typical task that maybe a bit time consuming or just requires to use a bit advanced algorithm.enhancementNew feature or requestNew feature or requestest. time: < 1 weekA loose time estimation of less than one week of work.A loose time estimation of less than one week of work.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
StatusShow more project fields
Todo
Default code highlighting is limited. Where possible we should add custom type hints to properly color a token.
Status
// prism-push-types:Type1,Type2,Type3MagicComments should be applied after Prism tokenization to properly track line numbers facebook/docusaurus#8550
The problem
Example:

Enemytoken should be manually marked as a class name for better previewHow it should be done:
Result preview: