-
-
Notifications
You must be signed in to change notification settings - Fork 878
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add linebreaks before and after figures #2033
Conversation
I think we need 2 linebreaks before and after the plots so that they become individual blocks.
https://github.com/yihui/knitr/pull/2033/checks?check_run_id=3251862194#step:11:137 |
A breaking change is sometimes okay. I'm totally fine with breaking tests in this package. The much trickier and harder problem is to deal with is when the change breaks tests in other people's packages, over which I don't have control. We can try and see how bad the breaking change is. Thanks! |
I think this could break some outputs if this is no more possible to generate inline plots. The HTML output will be different (using inline Also, I am trying to understand why we are finding this now. It feels to me like there is a regression somewhere. The current code here seems to assume that when Lines 58 to 62 in 46a48b1
I did look deeply through it yet but this gets me thinking 😅 Thanks for looking into it @atusy ! |
@cderv
However, the behavior has been consistent for recent versions (I forgot which versions I tested...). The current patch fails to render captions with the following content, which misses blank lines after chunk.
|
Closing as this PR is the duplicate of #1760 |
to solve #2032