diff --git a/articles/github-spec.html b/articles/github-spec.html index 6d75abf..6022311 100644 --- a/articles/github-spec.html +++ b/articles/github-spec.html @@ -416,20 +416,20 @@
md_paragraph(sentences)
-#> The box was thrown beside the parked truck.
+#> A gold vase is both rare and costly.
#>
-#> The bombs left most of the town in ruins.
+#> It takes a good trap to capture a bear.
#>
-#> Bottles hold four kinds of rum.
+#> Dig deep in the earth for pirate's gold.
#>
-#> Tea in thin china has a sweet taste.
+#> Fly by night and you waste little time.
#>
-#> Open your book to the first page.
The box was thrown beside the parked truck.
-The bombs left most of the town in ruins.
-Bottles hold four kinds of rum.
-Tea in thin china has a sweet taste.
-Open your book to the first page.
+#> The kite dipped and swayed, but stayed aloft. +A gold vase is both rare and costly.
+It takes a good trap to capture a bear.
+Dig deep in the earth for pirate’s gold.
+Fly by night and you waste little time.
+The kite dipped and swayed, but stayed aloft.
md_quote(sentences)
-#> > The box was thrown beside the parked truck.
-#> > The bombs left most of the town in ruins.
-#> > Bottles hold four kinds of rum.
-#> > Tea in thin china has a sweet taste.
-#> > Open your book to the first page.
-The box was thrown beside the parked truck.
+A gold vase is both rare and costly.
-The bombs left most of the town in ruins.
+It takes a good trap to capture a bear.
-Bottles hold four kinds of rum.
+Dig deep in the earth for pirate’s gold.
-Tea in thin china has a sweet taste.
+Fly by night and you waste little time.
-Open your book to the first page.
+The kite dipped and swayed, but stayed aloft.
md_task(sentences, check = 3:4)
-#> * [ ] The box was thrown beside the parked truck.
-#> * [ ] The bombs left most of the town in ruins.
-#> * [x] Bottles hold four kinds of rum.
-#> * [x] Tea in thin china has a sweet taste.
-#> * [ ] Open your book to the first page.
states <- sample(state.name, size = 3)
md_bullet(states)
-#> * Nebraska
-#> * Texas
-#> * Oklahoma
md_bullet(states, marker = "+")
-#> + Nebraska
-#> + Texas
-#> + Oklahoma
md_order(states)
-#> 1. Nebraska
-#> 2. Texas
-#> 3. Oklahoma
md_order(states, seq = FALSE, marker = ")")
-#> 1) Nebraska
-#> 1) Texas
-#> 1) Oklahoma
md_image("https://www.r-project.org/Rlogo.png", alt = "R logo")
#> ![R logo](https://www.r-project.org/Rlogo.png)
# 6.12 Hard line breaks
md_hardline(sentences)
-#> The box was thrown beside the parked truck.
-#> The bombs left most of the town in ruins.
-#> Bottles hold four kinds of rum.
-#> Tea in thin china has a sweet taste.
-#> Open your book to the first page.
The box was thrown beside the parked truck.
-The bombs left most of the town in ruins.
-Bottles hold four kinds of rum.
-Tea in thin china has a sweet taste.
-Open your book to the first page.
A gold vase is both rare and costly.
+It takes a good trap to capture a bear.
+Dig deep in the earth for pirate’s gold.
+Fly by night and you waste little time.
+The kite dipped and swayed, but stayed aloft.
A regular line break (not in a code span or HTML tag) that is not @@ -922,33 +922,33 @@
6.12 - 6.13 Line breaks
-# 6.13 Soft line breaks md_softline(sentences) -#> The box was thrown beside the parked truck. -#> The bombs left most of the town in ruins. -#> Bottles hold four kinds of rum. -#> Tea in thin china has a sweet taste. -#> Open your book to the first page.
The box was thrown beside the parked truck. The bombs left most of -the town in ruins. Bottles hold four kinds of rum. Tea in thin china has -a sweet taste. Open your book to the first page.
+#> A gold vase is both rare and costly. +#> It takes a good trap to capture a bear. +#> Dig deep in the earth for pirate's gold. +#> Fly by night and you waste little time. +#> The kite dipped and swayed, but stayed aloft. +A gold vase is both rare and costly. It takes a good trap to capture +a bear. Dig deep in the earth for pirate’s gold. Fly by night and you +waste little time. The kite dipped and swayed, but stayed aloft.
You can see how both hard line and soft line breaks are different from the paragraphs as created using
md_paragraph()
-md_paragraph(sentences) -#> The box was thrown beside the parked truck. +#> A gold vase is both rare and costly. #> -#> The bombs left most of the town in ruins. +#> It takes a good trap to capture a bear. #> -#> Bottles hold four kinds of rum. +#> Dig deep in the earth for pirate's gold. #> -#> Tea in thin china has a sweet taste. +#> Fly by night and you waste little time. #> -#> Open your book to the first page.
The box was thrown beside the parked truck.
-The bombs left most of the town in ruins.
-Bottles hold four kinds of rum.
-Tea in thin china has a sweet taste.
-Open your book to the first page.
+#> The kite dipped and swayed, but stayed aloft. +A gold vase is both rare and costly.
+It takes a good trap to capture a bear.
+Dig deep in the earth for pirate’s gold.
+Fly by night and you waste little time.
+The kite dipped and swayed, but stayed aloft.
-6.14 Textual content @@ -965,38 +965,38 @@
6.14 Textual content
# 6.14 Textual content md_text(sentences) -#> The box was thrown beside the parked truck. -#> The bombs left most of the town in ruins. -#> Bottles hold four kinds of rum. -#> Tea in thin china has a sweet taste. -#> Open your book to the first page.
The box was thrown beside the parked truck. The bombs left most of -the town in ruins. Bottles hold four kinds of rum. Tea in thin china has -a sweet taste. Open your book to the first page.
+#> A gold vase is both rare and costly. +#> It takes a good trap to capture a bear. +#> Dig deep in the earth for pirate's gold. +#> Fly by night and you waste little time. +#> The kite dipped and swayed, but stayed aloft. +A gold vase is both rare and costly. It takes a good trap to capture +a bear. Dig deep in the earth for pirate’s gold. Fly by night and you +waste little time. The kite dipped and swayed, but stayed aloft.
Compare this to the regular handling of character strings.
-print(sentences) -#> [1] "The box was thrown beside the parked truck." -#> [2] "The bombs left most of the town in ruins." -#> [3] "Bottles hold four kinds of rum." -#> [4] "Tea in thin china has a sweet taste." -#> [5] "Open your book to the first page."
[1] “The box was thrown beside the parked truck.” [2] “The bombs left -most of the town in ruins.”
+#> [1] "A gold vase is both rare and costly." +#> [2] "It takes a good trap to capture a bear." +#> [3] "Dig deep in the earth for pirate's gold." +#> [4] "Fly by night and you waste little time." +#> [5] "The kite dipped and swayed, but stayed aloft." +
-[3] “Bottles hold four kinds of rum.”
-[4] “Tea in thin china has a sweet taste.”
-[5] “Open your book to the first page.”[1] “A gold vase is both rare and costly.”
+[2] “It takes a good trap to capture a bear.”
+[3] “Dig deep in the earth for pirate’s gold.”
+[4] “Fly by night and you waste little time.”
+[5] “The kite dipped and swayed, but stayed aloft.”
The
md_text()
function creates strings with theglue
S3 class. This class works in the same way as thecat()
functions.-cat(sentences) -#> The box was thrown beside the parked truck. The bombs left most of the town in ruins. Bottles hold four kinds of rum. Tea in thin china has a sweet taste. Open your book to the first page.
The box was thrown beside the parked truck. The bombs left most of -the town in ruins. Bottles hold four kinds of rum. Tea in thin china has -a sweet taste. Open your book to the first page.
+#> A gold vase is both rare and costly. It takes a good trap to capture a bear. Dig deep in the earth for pirate's gold. Fly by night and you waste little time. The kite dipped and swayed, but stayed aloft. +A gold vase is both rare and costly. It takes a good trap to capture +a bear. Dig deep in the earth for pirate’s gold. Fly by night and you +waste little time. The kite dipped and swayed, but stayed aloft.
diff --git a/articles/literal-programming.html b/articles/literal-programming.html index f6f6658..bc6a9c7 100644 --- a/articles/literal-programming.html +++ b/articles/literal-programming.html @@ -511,7 +511,7 @@Inlines # `r md_code(var)`
Then, you can easily print that result in the middle of regular text with markdown formatting. In this case, our randomly selected state is… -Alaska and the
diff --git a/pkgdown.yml b/pkgdown.yml index ccf52c5..5d02780 100644 --- a/pkgdown.yml +++ b/pkgdown.yml @@ -4,5 +4,5 @@ pkgdown_sha: ~ articles: github-spec: github-spec.html literal-programming: literal-programming.html -last_built: 2023-12-21T17:52Z +last_built: 2023-12-21T17:54Z diff --git a/reference/md_blank.html b/reference/md_blank.html index 1799569..efee02d 100644 --- a/reference/md_blank.html +++ b/reference/md_blank.html @@ -103,7 +103,7 @@Life Exp
variable was +Rhode Island and theArea
variable was randomly selected from thestate.x77
dataframe. Calculating results and using those calculations in the body of a text document increases reproducibility.Examples
#> { #> glue::glue("\n") #> } -#> <bytecode: 0x55ab5bf66b68> +#> <bytecode: 0x556d51109850> #> <environment: namespace:gluedown> diff --git a/reference/md_bullet.html b/reference/md_bullet.html index 9435557..8ca9163 100644 --- a/reference/md_bullet.html +++ b/reference/md_bullet.html @@ -117,11 +117,11 @@Examples
#> * Arkansas #> * California md_bullet(sample(state.name, 5), marker = "+") -#> + Pennsylvania -#> + Delaware -#> + Alabama -#> + Vermont -#> + Kansas +#> + Maine +#> + South Carolina +#> + Tennessee +#> + Hawaii +#> + North Dakota diff --git a/reference/md_order.html b/reference/md_order.html index 38648d5..6d1a008 100644 --- a/reference/md_order.html +++ b/reference/md_order.html @@ -135,17 +135,17 @@Examples
#> 4. Arkansas #> 5. California md_order(sample(state.name, 5), marker = ")") -#> 1) Pennsylvania -#> 2) Illinois -#> 3) Arkansas +#> 1) New Jersey +#> 2) Louisiana +#> 3) Maryland #> 4) Florida -#> 5) Louisiana +#> 5) Delaware md_order(sample(state.name, 5), seq = FALSE) -#> 1. Kentucky -#> 1. Minnesota -#> 1. New Jersey #> 1. Wyoming -#> 1. Georgia +#> 1. Minnesota +#> 1. Louisiana +#> 1. Alaska +#> 1. West Virginia