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

core display text should support markdown instead of HTML? #12

Open
BryanWilhite opened this issue Apr 15, 2019 · 1 comment
Open

core display text should support markdown instead of HTML? #12

BryanWilhite opened this issue Apr 15, 2019 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@BryanWilhite
Copy link
Owner

the questions posed at the end of this comment leads me to investigate the possibility of moving the concept of display text beyond the string type

@BryanWilhite BryanWilhite added the question Further information is requested label Apr 15, 2019
@BryanWilhite BryanWilhite self-assigned this Apr 15, 2019
@BryanWilhite
Copy link
Owner Author

BryanWilhite commented Apr 15, 2019

when i see things like ngx-markdown and MarkdownTextBlock XAML Control the message seems clear to me that display text should support markdown

at the very least, i propose a new type, DisplayText, which would be a wrapper around string:

export class DisplayText {
    public content: string;
    public contentType: 'plain' | 'html' | 'markdown';
}

this class definition appears to be the most friendly towards translation into other languages like C#

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

No branches or pull requests

1 participant