internal static MarkdownWriterSettings From(MarkdownFormat format) { if (format == null || object.ReferenceEquals(format, MarkdownFormat.Default)) { return(Default); } return(new MarkdownWriterSettings(format)); }
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; }
public MarkdownWriterSettings WithFormat(MarkdownFormat format) { return(new MarkdownWriterSettings(format, NewLineChars, NewLineHandling, CloseOutput)); }