/// <inheritdoc/> public string ReplacementTextForMarker(MarkupAttributeMarker marker) { if (marker.TryGetProperty(LineParser.ReplacementMarkerContents, out var prop)) { return(prop.StringValue); } else { // this is only possible when it's a tag like [raw/], in // which case there's no text to provide, so we'll provide // the empty string here return(string.Empty); } }
/// <inheritdoc/> public string ReplacementTextForMarker(MarkupAttributeMarker marker) { if (marker.TryGetProperty(LineParser.ReplacementMarkerContents, out var prop)) { return(prop.StringValue); } else { // this is only possible when this marker is self-closing (i.e. // it's '[nomarkup/]'), in which case there's no text to // provide, so we'll provide the empty string here return(string.Empty); } }