private static string InternalApply(string text, Transformation transformation, string additionalClass) { if (string.IsNullOrEmpty(additionalClass) == false) { transformation.AddRule(new AddAdditionalClassAttributeRule("markup-", additionalClass)); } return(transformation.TransformHtml(text)); }