Allow PanelElements to be instantiated with markup

This is needed for the styleguide.