Skip to content

Commit f017261

Browse files
authored
Fix Revealjs Output Class (#100)
* Duplicate CSS rule as RevealJS is overriding the more generic version... * Add more examples into RevealJS
1 parent 5440ea4 commit f017261

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

_extensions/webr/webr-init.html

+9
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@
8282
display: contents;
8383
}
8484

85+
.reveal pre div code.qwebr-output-code-stdout {
86+
color: #111;
87+
}
88+
89+
.reveal pre div code.qwebr-output-code-stderr {
90+
color: #db4133;
91+
}
92+
93+
8594
/* Create a border around console and output (does not effect graphs) */
8695
.reveal div.qwebr-console-area {
8796
border: 1px solid #EEEEEE;

examples/revealjs/index.qmd

+21
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,27 @@ summary(fit)
3131
plot(pressure)
3232
```
3333

34+
## Help Documentation
35+
36+
```{webr-r}
37+
?mean
38+
```
39+
40+
41+
## Prints, Warnings, and Errors
42+
43+
```{webr-r}
44+
cat("Hello there!\n")
45+
46+
x = c(1, 2, 3)
47+
print(x)
48+
49+
warning("Uh-oh, something is amiss")
50+
51+
stop("I'm sorry Dave, I'm afraid I can't do that")
52+
```
53+
54+
3455
## Keyboard Shortcuts
3556

3657
- Run selected code using either:

0 commit comments

Comments
 (0)