mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
fix(theme): allow empty code blocks and live playgrounds (#9704)
This commit is contained in:
parent
ca09f238f3
commit
16500436f7
6 changed files with 70 additions and 7 deletions
|
@ -458,3 +458,33 @@ See https://github.com/facebook/docusaurus/issues/9517
|
|||
</head>
|
||||
</html>
|
||||
```
|
||||
|
||||
## Empty code blocks edge cases
|
||||
|
||||
Empty inline code block: ``
|
||||
|
||||
Single space inline code block: ` `
|
||||
|
||||
Empty code block
|
||||
|
||||
{/* prettier-ignore */}
|
||||
```
|
||||
```
|
||||
|
||||
Empty 1 line code block
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
Empty 2 line code block
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
Empty live code block
|
||||
|
||||
```js live
|
||||
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue