Extract code parts and concat them together from markdown