Esempio n. 1
0
 private RenderFragment CreateButtonRenderer(Type _Type, object Model)
 {
     return(Builder =>
     {
         Builder.OpenComponent(0, _Type);
         Builder.AddAttribute(1, "Model", Model);
         Builder.CloseComponent();
     });
 }
        public override string Heading(string text, int level, string raw)
        {
            if (Builder != null)
            {
                Builder.OpenComponent <MarkdownTitle>(Index++);
                Builder.AddAttribute(Index++, "Level", level);
                Builder.AddAttribute(Index++, "Text", text);
                Builder.CloseComponent();
            }

            return(string.Empty);
        }
        public override string Code(string code, string lang, bool escaped)
        {
            if (Builder != null)
            {
                Builder.OpenComponent <PrismCode>(Index++);
                Builder.AddAttribute(Index++, "Language", lang);
                Builder.AddAttribute(Index++, "Code", code);
                Builder.CloseComponent();
            }

            return(string.Empty);
        }