We only render AditionalInfo as text/plain today, but need to support HTML as legacy content and markdown as well.
Use embeddable HTML component for supporting this action.
Implementation
Section for (optional) additional info InboxItemDetail should render different depending on mediaType:
text/plain : render as string (as if today)
text/markdown: render using component from workspace dependency packages/embeddable-markdown-html/
text/html: render using
component from workspace dependency packages/embeddable-markdown-html/
Highly consider extraction the section for additional in InboxItemDetail to a separate component, abstracting this logic.
Testing
Add examples in mockDialogs with both markdown and HTML.
Introduction
We only render AditionalInfo as text/plain today, but need to support HTML as legacy content and markdown as well. Use embeddable HTML component for supporting this action.
Implementation
Section for (optional) additional info
InboxItemDetail
should render different depending onmediaType
:text/plain
: render as string (as if today)text/markdown
: render usingpackages/embeddable-markdown-html/
text/html
: render usingpackages/embeddable-markdown-html/
Highly consider extraction the section for additional in
InboxItemDetail
to a separate component, abstracting this logic.Testing
Add examples in
mockDialogs
with both markdown and HTML.