You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have provided the necessary information about my issue.
If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('knitr'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('yihui/knitr').
If I have posted the same issue elsewhere, I have also mentioned it in this issue.
I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
I think there is (undesirable?) behaviour present when rendering epubs using the epub_version attribute set to epub2. Basically, after embedding images on a document with caption (using fig.caption), if the document is rendered using bookdown and epub_version is set to epub3 or epub, knitr will render <p class="caption"> block with the caption (as expected). On the other hand, if it's set to epub2, the caption block is not rendered.
At first, I thought this was an issue of bookdown, but I found this line that may be the culprit:
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
By filing an issue to this repo, I promise that
xfun::session_info('knitr')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/knitr')
.I understand that my issue may be closed if I don't fulfill my promises.
My session:
I think there is (undesirable?) behaviour present when rendering epubs using the
epub_version
attribute set toepub2
. Basically, after embedding images on a document with caption (usingfig.caption
), if the document is rendered using bookdown andepub_version
is set toepub3
orepub
, knitr will render<p class="caption">
block with the caption (as expected). On the other hand, if it's set toepub2
, the caption block is not rendered.At first, I thought this was an issue of bookdown, but I found this line that may be the culprit:
knitr/R/utils.R
Line 382 in 17ef462
(probably should include "epub2" as well?)
The text was updated successfully, but these errors were encountered: