src/Tasklist/TaskItem.cs
/// <summary>
/// Writes the block to the given TextWriter.
/// </summary>
/// <param name="writer">writer</param>
/// <param name="formatting">optional formatting</param>
Writes the block to the given TextWriter.
Writes the block to the given TextWriter .
public override void Write(TextWriter writer, MarkdownFormatting formatting)
        {
            var sw = new StringWriter();
            base.Write(sw, formatting);
            writer.Write(Indent);
            writer.Write("- [");
            writer.Write(IsChecked ? "x" : " ");
            writer.Write("] ");
            writer.WriteLine(sw.ToString().TrimEnd('\r','\n'));
        }
public override void Write ( TextWriter writer , MarkdownFormatting formatting ) { var sw = new StringWriter ( ) ; base . Write ( sw , formatting ) ; writer . Write ( Indent ) ; writer . Write ( " " ) ; writer . Write ( IsChecked ? " " : " " ) ; writer . Write ( " " ) ; writer . WriteLine ( sw . ToString ( ) . TrimEnd ( ' \r ' , ' \n ' ) ) ; }
Writes the block to the given TextWriter.
Writes the block to the given TextWriter .
writer
TextWriter
None
formatting
MarkdownFormatting
None