It's the same technique as the heading parser uses to parse the heading after the `!`.