mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 10:22:30 +02:00
feat(theme-common): stable classname for code blocks (#6125)
* feat(theme-common): stable classname for code blocks * Remove extra lines * Fix styles * Remove line
This commit is contained in:
parent
a5d2815154
commit
06bd44c693
4 changed files with 17 additions and 2 deletions
|
@ -114,6 +114,7 @@ import CodeBlock from '@theme/CodeBlock';
|
|||
{ThemeClassNamesCode
|
||||
// remove source comments
|
||||
.replace(/\/\*[\s\S]*?\*\/|\/\/.*/g,'')
|
||||
.replace(/^ *\n/gm,'')
|
||||
.trim()}
|
||||
</CodeBlock>
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue