Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend inputs to accept more than just MdPlainText #9

Open
Cloud-Awesome opened this issue Sep 23, 2021 · 1 comment
Open

Extend inputs to accept more than just MdPlainText #9

Cloud-Awesome opened this issue Sep 23, 2021 · 1 comment

Comments

@Cloud-Awesome
Copy link
Owner

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:

  • MdTable.AddColumn()
  • MdTableRow.AddCell()
  • MdList.AddItem()
  • MdQuote.AddLine()

These currently accept just a string:

  • MdImage()
  • MdLink()
@Cloud-Awesome
Copy link
Owner Author

Cloud-Awesome commented Oct 8, 2021

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant