Fix skipping of some elements in makrdown