-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from ElianHugh/refactor-with
as_markdown uses dots, with_* refactor
- Loading branch information
Showing
10 changed files
with
244 additions
and
50 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# element output is accurate | ||
|
||
Code | ||
div("Hello world!") | ||
Output | ||
:::{} | ||
Hello world! | ||
::: | ||
|
||
--- | ||
|
||
Code | ||
div("This is a tip!", attr = ".callout-tip") | ||
Output | ||
:::{.callout-tip} | ||
This is a tip! | ||
::: | ||
|
||
--- | ||
|
||
Code | ||
span() | ||
Output | ||
[]{} | ||
|
||
--- | ||
|
||
Code | ||
span("Hello world!", attr = ".bold") | ||
Output | ||
[Hello world!]{.bold} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# mdapply works | ||
|
||
Code | ||
mdapply(input, function(x) { | ||
div(x$msg, attr = sprintf(".callout-%s", x$type)) | ||
}) | ||
Output | ||
:::{.callout-tip} | ||
a tip | ||
::: | ||
:::{.callout-warning} | ||
a warning | ||
::: | ||
:::{.callout-message} | ||
a message | ||
::: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,126 @@ | ||
# with_*() output is as expected | ||
|
||
Code | ||
input[[i]] | ||
Output | ||
:::{.column-body .bar} | ||
foo | ||
::: | ||
|
||
--- | ||
|
||
Code | ||
input[[i]] | ||
Output | ||
:::{.column-page .bar} | ||
foo | ||
::: | ||
|
||
--- | ||
|
||
Code | ||
input[[i]] | ||
Output | ||
:::{.column-screen-inset .bar} | ||
foo | ||
::: | ||
|
||
--- | ||
|
||
Code | ||
input[[i]] | ||
Output | ||
:::{.column-screen .bar} | ||
foo | ||
::: | ||
|
||
--- | ||
|
||
Code | ||
input[[i]] | ||
Output | ||
:::{.column-margin .bar} | ||
foo | ||
::: | ||
|
||
--- | ||
|
||
Code | ||
extensions_input[[i]] | ||
Output | ||
:::{.column-body-left .bar} | ||
foo | ||
::: | ||
|
||
--- | ||
|
||
Code | ||
extensions_input[[i]] | ||
Output | ||
:::{.column-page-right .bar} | ||
foo | ||
::: | ||
|
||
--- | ||
|
||
Code | ||
extensions_input[[i]] | ||
Output | ||
:::{.column-screen-inset-shaded .bar} | ||
foo | ||
::: | ||
|
||
--- | ||
|
||
Code | ||
extensions_input[[i]] | ||
Output | ||
:::{.column-screen-left .bar} | ||
foo | ||
::: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters