On the overblog site, the container that the long string is in, has word-wrap: break-word
, while in your example here, it doesn't. (word-wrap
is set to its default, normal
).
See also https://developer.mozilla.org/en-US/docs/Web/CSS/word-wrap
Solution: apply the style word-wrap: break-word
to wherever you put the string.
(Unfortunately, I am not well versed in RMarkdown and I'm not sure how you should do that exactly. But I am sure it will do the trick.)
Edit:
If you have full control over the CSS, all you need to do is add that property to the style for pre code
.
So the complete style will read
pre code {
display: block; padding: 0.5em;
word-wrap: break-word;
}