Litedown: deduplicated the code responsible for closing code blocks