我正在尝试使用xaringan
软件包创建增量列表,但是一堆子弹一起出现了。这是视觉示例:
在此示例中,当我单击一次时,元素1看起来像计划的那样。当我第二次单击时,元素2和3以及--
都会出现。然后,我第三次单击以显示第4个元素。
这是我使用的代码:
---
title: "Incremental Slides with xaringan / remark.js"
author: "Yihui Xie"
date: "2017/08/31"
output:
xaringan::moon_reader:
lib_dir: libs
nature:
countIncrementalSlides: false
---
# test 1
Two dash incremental fails in long list
a simple list
--
- element 1 works
--
- element 2 triggers element 3
--
- element 3 appears too early
--
- element 4
---
这实际上是非常基本的,我不明白为什么它会失败。起初,我认为它与分层项目符号有关:
- el1
--
- el2
--
- el3
- ela
--
- el4
因为我的问题似乎仅在这些情况下出现。但是,我再次尝试了另一个全新的示例:
---
title: "Presentation Ninja"
subtitle: "⚔<br/>with xaringan"
author: "Yihui Xie"
institute: "RStudio, Inc."
date: "2016/12/12 (updated: `r Sys.Date()`)"
output:
xaringan::moon_reader:
lib_dir: libs
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
---
blabla
- a
--
- b
--
- c
--
- d
这也给了我错误的输出:
我错过了什么吗?是我的设置,还是其他人可以重现该问题?
我有Rstudio版本:1.2.1335
和我的会话信息:
sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows Server x64 (build 14393)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.5.1 htmltools_0.3.6 tools_3.5.1 xaringan_0.9.3 yaml_2.2.0 Rcpp_1.0.1 rmarkdown_1.12 knitr_1.22 xfun_0.6
[10] digest_0.6.18 evaluate_0.13
答案 0 :(得分:0)
发现了错误。该问题与两个破折号后面的空白有关(使用--
而不是--_
)。删除解决了我的问题。
这很敏感...