Пример #1
0
        public ExtensibleHtmlFormatter WithFormatter(InlineTag inlineTag, Func <Inline, bool> canFormat, Func <Inline, string> openingFormatter, Func <Inline, string> closingFormatter)
        {
            this.inlineFormatters.Add(inlineTag, InlineFormatter.Create(canFormat, openingFormatter, closingFormatter));

            return(this);
        }
Пример #2
0
        public ExtensibleHtmlFormatter WithFormatter(InlineTag inlineTag, Func <Inline, string> formatter)
        {
            this.inlineFormatters.Add(inlineTag, InlineFormatter.Create(formatter));

            return(this);
        }