Strange excerpt created from code post

The excerpt from this post that appears in the timeline is strange.

This original looks like this:

The excerpt looks like this:

It seems like something about the syntax of the code I shared caused a big chunk in the middle to be elided.