Skip to content
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

chore: fix site deployment Crowdin issue #7326

Merged
merged 1 commit into from
May 4, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,10 @@ Below, we will introduce how the magic comment system can be extended to define

You can declare custom magic comments through theme config. For example, you can register another magic comment that adds a `code-block-error-line` class name:

`````mdx-code-block
```mdx-code-block
<Tabs>
<TabItem value="docusaurus.config.js">
```

```js
module.exports = {
Expand All @@ -309,8 +310,10 @@ module.exports = {
};
```

```mdx-code-block
</TabItem>
<TabItem value="src/css/custom.css">
```

```css
.code-block-error-line {
Expand All @@ -322,8 +325,10 @@ module.exports = {
}
```

```mdx-code-block
</TabItem>
<TabItem value="myDoc.md">
```

````md
In JavaScript, trying to access properties on `null` will error.
Expand All @@ -336,10 +341,10 @@ console.log(name.toUpperCase());
```
````

```mdx-code-block
</TabItem>
</Tabs>
`````
```

````mdx-code-block
<BrowserWindow>
Expand Down