Use cmark_iter to avoid stack allocation in process_inlines.