Skip to content

Commit

Permalink
Switch to R as default for document; and javascript for the inline
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Nov 25, 2024
1 parent a0b1616 commit d884d8b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/qtabby-example.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ format:
filters:
- tabby # Include the tabby filter
tabby:
default-tab: "javascript" # Set Javascript as the default tab document-wide
default-tab: "r" # Set R as the default tab document-wide
---

# Introduction
Expand All @@ -26,7 +26,7 @@ format:
filters:
- tabby # Include the tabby filter
tabby:
default-tab: "javascript" # Set Javascript as the default tab document-wide
default-tab: "r" # Set R as the default tab document-wide
---
```

Expand Down Expand Up @@ -172,13 +172,13 @@ head(data)

## Override Default Tab

You can override the document-wide default tab for specific code blocks:
You can override the document-wide default tab for specific code blocks. Here's an example with Javascript as the default tab:

<details>
<summary>Source (Click to Expand)</summary>

````markdown
::: {.tabby default-tab="r"}
::: {.tabby default-tab="javascript"}
```python
print("Hello from Python!")
```
Expand All @@ -195,7 +195,7 @@ console.log("Hello from JavaScript!");
</details>


::: {.tabby default-tab="r"}
::: {.tabby default-tab="javascript"}
```python
print("Hello from Python!")
```
Expand Down

0 comments on commit d884d8b

Please sign in to comment.