-
Notifications
You must be signed in to change notification settings - Fork 128
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
v0.14 no longer allow images with links in aside #226
Comments
Thanks a lot for this bug report! |
Hi @RLesur, Thanks for working on this issue. Are you sure that it's fixed? I'm having trouble with using images as link anchors (tested on both the current The is my R Markdown:
And this is what the rendered results look like: In both cases (the FontAwesome R logo and the image) the link works! But there's the duplicate copy of the URL included as well. And this is happening in the body of the document, not the aside. Any ideas? Best regards, Andrew. |
Hi, Thanks for opening a comment. Usually, we prefer new issue (with link to closed one) rather than comments in closed thread. Specifically when it is not directly related to the main issue.
This indicated that it is not directly related to this issue which is focused on the aside part. This should live in another issue for discussion.
This is expected in the default behavior (however I recognized that this is not as convenient with image) : https://pagedown.rbind.io/#inline-links
So that is why you see the url in parenthesis. Try also without image: ---
title: "Test Document"
output:
pagedown::html_paged:
self_contained: true
---
This is an inline link: [bookdown website](https://bookdown.org) As the doc says, you can put the link in footnote using ---
title: "Test Document"
output:
pagedown::html_paged:
self_contained: true
links-to-footnotes: true
--- but this will still create a footnote on image pagedown aims at producing paginated report that often will get printed and inline link hidden behind text, images or logos won't show unless we do something like the above. @RLesur do we need to adjust behavior here ? Can we maybe offer an opt-out way if desired to not show the link ? Like a global variable set to false, or maybe an attributes in the inline image link ? What do you think ? |
The latest update of
pagedown
introduced a bug with images associated with links (markdown or html syntax).The images are removed from the resulting HTML file.
Below, the outputs with v0.13 and v0.14 from the exact same Rmarkdown document.
With
pagedown
v0.13With
pagedown
v0.14The text was updated successfully, but these errors were encountered: