flatten package:pandoc

Flattens nested inlines. Extracts nested inlines and goes through them either collapsing them in the outer inline container or pulling them out of it