Ejemplo n.º 1
0
        /// <summary>Creates the image type source.</summary>
        /// <param name="altText">The alt text.</param>
        /// <param name="imageSource">The image source.</param>
        /// <param name="hoverText">The hover text.</param>
        /// <returns>The <see cref="string"/>.</returns>
        public static string CreateImageTypeSource(string altText, string imageSource, string hoverText)
        {
            string imageReference = MarkdownReference.CreateReference($@"{altText}", imageSource, hoverText);

            StringBuilder builder = new StringBuilder();

            builder.AppendLine(imageReference);

            return(builder.ToString());
        }
Ejemplo n.º 2
0
        /// <summary>Creates the image URL type source.</summary>
        /// <param name="altText">The alt text.</param>
        /// <param name="altTextSource">The alt text source.</param>
        /// <param name="altTextImage">The alt text image.</param>
        /// <param name="contentSource">The content source.</param>
        /// <param name="imageSource">The image source.</param>
        /// <param name="hoverSourceText">The hover source text.</param>
        /// <param name="hoverImageText">The hover image text.</param>
        /// <returns>The <see cref="string"/>.</returns>
        public static string CreateImageUrlTypeSource(string altText, string altTextSource, string altTextImage, string contentSource, string imageSource, string hoverSourceText, string hoverImageText)
        {
            string urlReference   = MarkdownReference.CreateReference($@"{altTextSource}", contentSource, hoverSourceText);
            string imageReference = MarkdownReference.CreateReference($@"{altTextImage}", imageSource, hoverImageText);

            StringBuilder builder = new StringBuilder();

            builder.AppendLine(urlReference);
            builder.AppendLine(imageReference);

            return(builder.ToString());
        }