mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Convert $json to json in package README code blocks (#101187)
This commit is contained in:
parent
dc5511f73b
commit
6724a474de
1 changed files with 3 additions and 1 deletions
|
@ -60,8 +60,10 @@ export const markdownRenderers = {
|
|||
</EuiLink>
|
||||
),
|
||||
code: ({ language, value }: { language: string; value: string }) => {
|
||||
// Old packages are using `$json`, which is not valid any more with the move to prism.js
|
||||
const parsedLang = language === '$json' ? 'json' : language;
|
||||
return (
|
||||
<EuiCodeBlock language={language} isCopyable>
|
||||
<EuiCodeBlock language={parsedLang} isCopyable>
|
||||
{value}
|
||||
</EuiCodeBlock>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue