Build fragment into a better fragment.

Per @mattr-'s comment in #2094:
https://github.com/jekyll/jekyll/pull/2094#discussion_r10011008