Exemple #1
0
        internal static MarkdownWriterSettings From(MarkdownFormat format)
        {
            if (format == null ||
                object.ReferenceEquals(format, MarkdownFormat.Default))
            {
                return(Default);
            }

            return(new MarkdownWriterSettings(format));
        }
Exemple #2
0
 public MarkdownWriterSettings(
     MarkdownFormat format           = null,
     string newLineChars             = null,
     NewLineHandling newLineHandling = NewLineHandling.Replace,
     bool closeOutput = false)
 {
     Format          = format ?? MarkdownFormat.Default;
     NewLineChars    = newLineChars ?? Environment.NewLine;
     NewLineHandling = newLineHandling;
     CloseOutput     = closeOutput;
 }
Exemple #3
0
 public MarkdownWriterSettings WithFormat(MarkdownFormat format)
 {
     return(new MarkdownWriterSettings(format, NewLineChars, NewLineHandling, CloseOutput));
 }