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

Extend inputs to accept more than just MdPlainText #9

Open Cloud-Awesome opened 3 years ago

Cloud-Awesome commented 3 years ago

Things like MdTable.AddColumn() should be able to accept MdBoldText etc. as well as plain text

(c.f. MdItalicText, but better)

These currently accept MdPlainText or string:

These currently accept just a string:

Cloud-Awesome commented 3 years ago

Two options here, maybe one option for some, one for others, and some could support both...

  1. Accept an MdParagraph element, which accepts multiple elements, in the constructor (probably wouldn't be great for table columns etc...)
  2. Introduce an ISingleLineElement which is inherited by, e.g. MdBoldText, MdItalicText...