Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Convert sanitized HTML into Markdown #19

Open
2 of 5 tasks
alicerunsonfedora opened this issue Oct 23, 2021 · 0 comments
Open
2 of 5 tasks

Convert sanitized HTML into Markdown #19

alicerunsonfedora opened this issue Oct 23, 2021 · 0 comments
Assignees
Labels
task A task that may not necessarily be tied to a bug report or a feature request.
Milestone

Comments

@alicerunsonfedora
Copy link
Member

alicerunsonfedora commented Oct 23, 2021

  • I know that I'm requesting a feature for Codename Starlight (SwiftUI) and not for Hyperspace Desktop (JS).

Previously, we aimed to try rendering the sanitized HTML content from a status with #6. However, with the new improvements in SwiftUI, we should be able to convert this into Markdown for SwiftUI to render on its own.

Tasks

  • Convert emojicodes (:thumbsup:) into their corresponding emojis (👍🏻)
  • Parse anchor tags (<a>) into proper Markdown links that the deep linker can use
  • Strip away basic HTML attributes and replace them with Markdown equivalents (ex.: <b> to **, <I> to _)
  • Add cards for extra information that a status provides (see also: Add a full-fledged media viewer + support for more media types #11)

Note: This issue supersedes #6.

@alicerunsonfedora alicerunsonfedora added the task A task that may not necessarily be tied to a bug report or a feature request. label Oct 23, 2021
@alicerunsonfedora alicerunsonfedora added this to the Milestone 1 milestone Oct 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
task A task that may not necessarily be tied to a bug report or a feature request.
Projects
None yet
Development

No branches or pull requests

2 participants