Cloud-Awesome / markdown-maker

Lightweight library to assist creation of .md files (in GitHub and/or DocFX flavours)
MIT License
0 stars 0 forks source link

Override constructors to accept an array of children as opposed to using the .Add() methods #5

Closed Cloud-Awesome closed 3 years ago

Cloud-Awesome commented 3 years ago

e.g. use

var quote = new MdQuote()
{
    "All the world’s a stage, and all the men and women merely players.",
    "They have their exits and their entrances;",
    "And one man in his time plays many parts."
};

on top of the existing

var quote = new MdQuote()
    .AddLine(new MdPlainText("All the world’s a stage, and all the men and women merely players."))
    .AddLine(new MdPlainText("They have their exits and their entrances;"))
    .AddLine(new MdPlainText("And one man in his time plays many parts."));

Both are required.

Cloud-Awesome commented 3 years ago

As per #3 - Also support

var quote = new MdQuote()
    .AddLine("All the world’s a stage, and all the men and women merely players.")
    .AddLine("They have their exits and their entrances;")
    .AddLine("And one man in his time plays many parts.");
Cloud-Awesome commented 3 years ago

Classes affected: