예제 #1
0
        public virtual string TableCell(string content, TableCellFlags flags)
        {
            var type = flags.Header ? "th" : "td";
            var tag  = !string.IsNullOrEmpty(flags.Align)
                ? $"<{type} style='text-align:{flags.Align}'>"
                : $"<{type}>";

            return(tag + content + $"</{type}>\n");
        }
예제 #2
0
파일: Renderer.cs 프로젝트: tomlm/MarkedNet
        public virtual string TableCell(string content, TableCellFlags flags)
        {
            var type = flags.Header ? "th" : "td";
            var tag  = !String.IsNullOrEmpty(flags.Align)
                ? "<" + type + " style=\"text-align:" + flags.Align + "\">"
                : "<" + type + ">";

            return(tag + content + "</" + type + ">\n");
        }
예제 #3
0
        public virtual string TableCell(string content, TableCellFlags flags)
        {
            var type = flags.Header ? "th" : "td";
            var tag = !String.IsNullOrEmpty(flags.Align)
                ? "<" + type + " style=\"text-align:" + flags.Align + "\">"
                : "<" + type + ">";

            return tag + content + "</" + type + ">\n";
        }