From d884d8b26ac8de2303298b7b475a85561b1c5b4c Mon Sep 17 00:00:00 2001 From: "james.balamuta@gmail.com" Date: Mon, 25 Nov 2024 02:48:30 -0600 Subject: [PATCH] Switch to R as default for document; and javascript for the inline --- docs/qtabby-example.qmd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/qtabby-example.qmd b/docs/qtabby-example.qmd index 62d099e..902ae65 100644 --- a/docs/qtabby-example.qmd +++ b/docs/qtabby-example.qmd @@ -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 @@ -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 --- ``` @@ -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:
Source (Click to Expand) ````markdown -::: {.tabby default-tab="r"} +::: {.tabby default-tab="javascript"} ```python print("Hello from Python!") ``` @@ -195,7 +195,7 @@ console.log("Hello from JavaScript!");
-::: {.tabby default-tab="r"} +::: {.tabby default-tab="javascript"} ```python print("Hello from Python!") ```