-
Notifications
You must be signed in to change notification settings - Fork 65
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
column.width issue when using img refs #336
Comments
I think this is a limitation of |
Just a little update, in case someone encounters the same situation: I asked the question on the pandoc discussion group, and it is indeed a limitation in pandoc. There is an easy workaround when the column containing the images is the last one:
... but if it's not the last column, it doesn't work. Otherwise, here are the suggestions I got from the Pandoc discussion board:
And it doesn't seem like there's a lot of appetite for change at this point. |
Thanks, @dcomtois, these points are really useful 👍 |
You're welcome! Unfortunately the workaround I was putting my faith in a non-solution since it also requires a pandoc filter. Maybe an advanced Web developer could see a solution (involving Javascript, most probably), but I had to do something far from ideal to make things work: copy the images in a subdirectory and save them using short names. That way I can put in the cells something like this:
...and it makes the widths perfectly fine. Only (quite annoying) problem is that it leaves garbage behind. |
The column widths are affected by the length of the path to images, which should not happen... For instance, if a cell contains:
![](C:\\Users\\usr1234\\AppData\\Local\\Temp\\RtmpQhs2I7\\file3a745a6e4f4f.png)
The width will try to accomodate for all these characters.
Here's a .Rmd demo:
Rendered results here
The text was updated successfully, but these errors were encountered: