Generate from internal markup builder to support filtering on output string.