Exemple #1
0
        public MarkdownContent GetMD()
        {
            if (String.IsNullOrEmpty(Name))
            {
                return(MarkdownContent.Empty());
            }
            else
            {
                switch (Name)
                {
                case "To Do":
                    return(MarkdownContent.SingleContent(" [ ] "));

                case "Important":
                    return(MarkdownContent.SingleContent(":star: "));

                case "Question":
                    return(MarkdownContent.SingleContent(":question: "));

                case "Critical":
                    return(MarkdownContent.SingleContent(":exclamation: "));



                default:
                    return(MarkdownContent.SingleContent(":red_circle: "));
                }
            }
        }
Exemple #2
0
        public MarkdownContent GetMD()
        {
            if (String.IsNullOrEmpty(Name))
            {
                return(MarkdownContent.Empty());
            }
            else
            {
                switch (Name)
                {
                case "PageTitle":
                    return(MarkdownContent.SingleContent("# "));

                case "h1":
                    return(MarkdownContent.SingleContent("# "));

                case "h2":
                    return(MarkdownContent.SingleContent("## "));

                case "h3":
                    return(MarkdownContent.SingleContent("### "));

                case "h4":
                    return(MarkdownContent.SingleContent("#### "));

                case "h5":
                    return(MarkdownContent.SingleContent("##### "));

                case "h6":
                    return(MarkdownContent.SingleContent("###### "));

                case "h7":
                    return(MarkdownContent.SingleContent("####### "));

                case "p":
                    return(MarkdownContent.SingleContent("\r\n"));

                case "cite":
                    return(MarkdownContent.PairedContent("*"));

                case "code":
                    return(MarkdownContent.PairedContent("`"));

                default:
                    return(MarkdownContent.Empty());
                }
            }
        }