-
Notifications
You must be signed in to change notification settings - Fork 3
Clarify global language synchronization for tabs and code blocks (Docs) #472
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
Conversation
| ``` | ||
| </Tab> | ||
| </Tabs> | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devalog I think we should add the markdown for both of these examples.
Also i think we should lead with the sync'd lanugage example and then the non-sync'd language example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I swapped the order. I agree about having markdown examples, but I keep getting mdx parsing errors when I try to do this. I don't think the parser is liking the nested code fences. Any ideas?
```jsx
<Tabs>
<Tab title="TypeScript" language="typescript">
```typescript
console.log("Second code block – language syncs with the one above!");
```
</Tab>
<Tab title="Python" language="python">
```python
print("Second code block – language syncs with the one above!")
```
</Tab>
<Tab title="Java" language="java">
```java
System.out.println("Second code block – language syncs with the one above!");
```
</Tab>
</Tabs>
No description provided.