-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
fix(theme): make Prism code block language / additionalLanguages case insensitive #9183
Changes from 4 commits
4a90ad4
39088f8
e95bea7
194f14f
66aa971
d50265d
c16a1e4
f86aab4
d4ca2b9
3f07aab
5420c57
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,21 @@ See: | |
- https://github.com/facebook/docusaurus/pull/3749 | ||
- https://github.com/facebook/docusaurus/pull/6177 | ||
|
||
## Code block with/without the good prism language case in additionalLanguages[] tests | ||
heysujal marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
```php | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that would be nice to add 2 other cases like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, i already tried doing that before making a pr. But, do we also want to add highlight support for code blocks like these? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, I have added them and I also saw that the VSCode Markdown preview supports highlighting all these blocks. So, maybe we should do it too. |
||
<?php | ||
$x=15; | ||
$y=30; | ||
$z=$x+$y; | ||
echo "Sum: ",$z; | ||
?> | ||
``` | ||
|
||
See: | ||
|
||
- https://github.com/facebook/docusaurus/pull/9183 | ||
|
||
## `pre` | ||
|
||
### `pre > string` | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be better handled in the config validation, you can use Joi to normalize/lowercase the provided user input values so that everything else in the system see lowercase values (including
prism-include-languages.ts
, it shouldn't be needed to lowercase there too anymore)