-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Open
Labels
GUIIssue is related to the graphical user interfaceIssue is related to the graphical user interfacecommentsAnything to do with comments and comment replies under videos/audiosAnything to do with comments and comment replies under videos/audiosrewriteIssues and PRs related to rewriteIssues and PRs related to rewrite
Description
Note: reimplementing
Description->AnnotatedStringis going to be a tough task, considering how complicatedTextLinkifieris: https://github.com/TeamNewPipe/NewPipe/blob/9d6ac67c46a6cc55e03dec0599d8070f7430098d/app/src/main/java/org/schabi/newpipe/util/text/TextLinkifier.java
Originally posted by @Stypox in #11060 (comment)
NewPipe/app/src/main/java/org/schabi/newpipe/ui/components/common/DescriptionText.kt
Lines 35 to 45 in fdf36cb
| fun rememberParsedDescription(description: Description): AnnotatedString { | |
| // TODO: Handle links and hashtags, Markdown. | |
| return remember(description) { | |
| if (description.type == Description.HTML) { | |
| val styles = TextLinkStyles(SpanStyle(textDecoration = TextDecoration.Underline)) | |
| AnnotatedString.fromHtml(description.content, styles) | |
| } else { | |
| AnnotatedString(description.content) | |
| } | |
| } | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
GUIIssue is related to the graphical user interfaceIssue is related to the graphical user interfacecommentsAnything to do with comments and comment replies under videos/audiosAnything to do with comments and comment replies under videos/audiosrewriteIssues and PRs related to rewriteIssues and PRs related to rewrite
Type
Projects
Status
Todo