Skip to content

Commit bd4cf82

Browse files
committed
More tests
1 parent 34ef6d9 commit bd4cf82

File tree

1 file changed

+141
-0
lines changed

1 file changed

+141
-0
lines changed

vignettes/test/quarto-features.qmd

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,4 +180,145 @@ diffviewer::visual_diff(path1, path2)
180180

181181
- Keyboard shortcut: {{< kbd Shift-Ctrl-P >}}
182182

183+
## Lists
184+
185+
* item 2
186+
187+
Continued (indent 4 spaces)
188+
189+
190+
191+
1. ordered list
192+
2. item 2
193+
194+
```python
195+
print("Hello, World!")
196+
```
197+
198+
A. sub-sub-item 1
199+
200+
201+
- [ ] Task 1
202+
- [x] Task 2
203+
204+
(@) A list whose numbering
205+
206+
continues after
207+
208+
(@) an interruption
209+
210+
211+
::: {}
212+
1. A list
213+
:::
214+
215+
::: {}
216+
1. Followed by another list
217+
:::
218+
219+
220+
term
221+
: definition
222+
223+
224+
## Footnotes
225+
226+
Here is a footnote reference,[^1] and another.[^longnote]
227+
228+
[^1]: Here is the footnote.
229+
230+
[^longnote]: Here's one with multiple blocks.
231+
232+
Subsequent paragraphs are indented to show that they
233+
belong to the previous footnote.
234+
235+
{ some.code }
236+
237+
The whole paragraph can be indented, or just the first
238+
line. In this way, multi-paragraph footnotes work like
239+
multi-paragraph list items.
240+
241+
This paragraph won't be part of the note, because it
242+
isn't indented.
243+
244+
245+
Here is an inline note.^[Inlines notes are easier to write,
246+
since you don't have to pick an identifier and move down to
247+
type the note.]
248+
249+
250+
## Equations
251+
252+
inline math: $E = mc^{2}$
253+
254+
display math:
255+
256+
$$E = mc^{2}$$
257+
258+
259+
## Other blocks
260+
261+
| Line Block
262+
| Spaces and newlines
263+
| are preserved
264+
265+
[This text is smallcaps]{.smallcaps}
266+
267+
[This text is underlined]{.underline}
268+
269+
[This text is highlighted]{.mark}
270+
271+
endash: --
272+
273+
emdash: ---
274+
275+
276+
## Shortcodes
277+
278+
{{< meta title >}}
279+
280+
{{< placeholder 400 200 >}}
281+
282+
{{< lipsum 1 >}}
283+
284+
### A section
285+
286+
Here we define a plot.
287+
288+
```{python}
289+
#| echo: false
290+
#| label: a-cell
291+
import matplotlib.pyplot as plt
292+
plt.plot([1,2,3])
293+
```
294+
295+
### Another section
296+
297+
Here we use the plot:
298+
299+
300+
### Note the following plot
301+
302+
{{< contents a-cell >}}
303+
304+
305+
```{python}
306+
#| label: a-cell
307+
print("some code")
308+
```
309+
310+
The output of the code cell is {{< contents a-cell >}}. Etc.
311+
312+
## Video
313+
314+
::: {#fig-cern}
315+
316+
{{< video https://www.youtube.com/embed/wo9vZccmqwc >}}
317+
318+
The video "CERN: The Journey of Discovery"
319+
320+
:::
321+
322+
In @fig-cern...
323+
183324
## References

0 commit comments

Comments
 (0)