rmarkdown icon indicating copy to clipboard operation
rmarkdown copied to clipboard

Odd font sizes in html_vignette output when viewing on the phone

Open mine-cetinkaya-rundel opened this issue 6 years ago • 3 comments

If you view this vignette on a phone, you should observe that some of the font sizes in font comments are larger than they should be, as though the comment # is being interpreted as a markdown header.

img_4895

I was able to reproduce this with a minimal-ish example.

  • Rmd can be found here
  • The published vignette is here
  • And below is a phone screenshot

img_4903

mine-cetinkaya-rundel avatar Dec 20 '18 08:12 mine-cetinkaya-rundel

I can see it on my phone, too, but I have no idea why it happens (only on the phone). There is nothing suspicious in the HTML source AFAICS (the class is co for these lines, which is correct).

yihui avatar Dec 20 '18 20:12 yihui

This is a little hard to investigate but this issue still exist. It would be interesting to look into safari web inspector for Iphone. Maybe this would allow to see which css rule is breaking this: https://medium.com/better-programming/debugging-your-iphone-mobile-web-app-using-safari-development-tools-71240657c487

cderv avatar Nov 02 '20 16:11 cderv

I checked and this is still an issue, but I still does not how to debug this on Mobile. It doesn't show in browser on computer. If anyone has hints on how to debug / inspect some HTML on mobile device (like iOS safari) it would help. Maybe not having a Mac does not help 😅

cderv avatar Jan 12 '22 10:01 cderv