mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-12 15:52:39 +02:00
fix(v2): synchronize code block components changes (#2509)
This commit is contained in:
parent
9cff1bb9e4
commit
44f9c76851
3 changed files with 118 additions and 9 deletions
|
@ -229,7 +229,7 @@ export default ({children, className: languageClassName, metastring}) => {
|
|||
onClick={handleCopyCode}>
|
||||
{showCopied ? 'Copied' : 'Copy'}
|
||||
</button>
|
||||
<pre
|
||||
<div
|
||||
tabIndex="0"
|
||||
className={classnames(className, styles.codeBlock, {
|
||||
[styles.codeBlockWithTitle]: codeBlockTitle,
|
||||
|
@ -255,7 +255,7 @@ export default ({children, className: languageClassName, metastring}) => {
|
|||
);
|
||||
})}
|
||||
</div>
|
||||
</pre>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue