Skip to content

Commit adfd645

Browse files
committed
tweak #1174
1 parent 42a240a commit adfd645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/examples/02-components.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ Cross-references still work even when we refer to an item that is not on the cur
618618
## Custom blocks
619619

620620
:::{.rmdimportant latex=true}
621-
A new syntax is now adviced to create custom blocks. We invite you to refer to [Chapter 9.6 in the R Markdown Cookbook](https://bookdown.org/yihui/rmarkdown-cookbook/custom-blocks.html) [@rmarkdown2020] and no more use the `block` and `block2` engine described below. Those will be deprecated in future version of **bookdown**. Please make the change in your content if you are still using one of this engine directly.
621+
We recommend that you use the new syntax to create custom blocks, which is introduced in [Section 9.6 in the _R Markdown Cookbook_](https://bookdown.org/yihui/rmarkdown-cookbook/custom-blocks.html) [@rmarkdown2020]. We do not recommend using the `block` or `block2` engine described below. Those will be deprecated in a future version of **bookdown**. Please remember to switch to the new syntax for your content if you are still using one of these engines. Thanks for your understanding!
622622
:::
623623

624624
You can generate custom blocks\index{custom block} using the `block` engine in **knitr**, i.e., the chunk option `engine = 'block'`, or the more compact syntax ```` ```{block} ````. This engine should be used in conjunction with the chunk option `type`, which takes a character string. When the `block` engine is used, it generates a `<div>` to wrap the chunk content if the output format is HTML, and a LaTeX environment if the output is LaTeX. The `type` option specifies the class of the `<div>` and the name of the LaTeX environment. For example, the HTML output of this chunk

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy