Added support for list substitutions combined with inline elements.