Пример #1
0
        private string GetWarning()
        {
            var warningTitle   = _context.GetToken(warningTitleId) ?? defaultWarningTitle;
            var warningMessage = _context.GetToken(warningMessageId) ?? defaultWarningMessage;

            return($@"<div class=""WARNING"">
{warningTitle}
<p>{warningMessage}</p>
</div>");
        }
Пример #2
0
        private string GetWarning()
        {
            var warningTitle   = _context.GetToken(warningTitleId) ?? defaultWarningTitle;
            var warningMessage = _context.GetToken(warningMessageId) ?? defaultWarningMessage;

            return(string.Format(@"<div class=""WARNING"">
{0}
<p>{1}</p>
</div>", warningTitle, warningMessage));
        }
Пример #3
0
        private void WriteNote(HtmlRenderer renderer, QuoteSectionNoteBlock obj)
        {
            var noteHeading = _context.GetToken(obj.NoteTypeString.ToLower()) ?? $"<h5>{obj.NoteTypeString.ToUpper()}</h5>";

            renderer.Write("<div").Write($" class=\"{obj.NoteTypeString.ToUpper()}\"").WriteAttributes(obj).WriteLine(">");
            var savedImplicitParagraph = renderer.ImplicitParagraph;

            renderer.ImplicitParagraph = false;
            renderer.WriteLine(noteHeading);
            renderer.WriteChildren(obj);
            renderer.ImplicitParagraph = savedImplicitParagraph;
            renderer.WriteLine("</div>");
        }