Fix markdown #1441
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#1441
Loading…
Reference in a new issue
No description provided.
Delete branch "markdown-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changes
Fix markdown render #1179
Test
Test for all supported features.
Security test
Markdown's XSS Vulnerability (and how to mitigate it)
Markdown XSS Payloads
Todo
@btzr-io - do you think we can handle lbry:// links internally, or should we have them call open.lbry.io somehow?
[*THE UNMASKING, Part 2: The \"Scam Artist\"*](lbry://theunmasking-part2-thescamartist)
Example at the bottom of lbry://@NorVegan#5cd109fb589944d1045a670dc4126e2640b0dccb/theunmasking-part1-thenarcissist
Also, should/could we show hyperlinks on hover over? Traditional browsers have a status bar which would show the target link.
Otherwise this PR looks great to me...much better than what we had before (barely any support).
They should definitely be handled internally
Finally tested this. This is awesome!! I merged the
lbry-redux
change, I think you just need to changeurl
touri
for the modal to work properly. One thing, all the headers look the same to me (not a big deal). This is really coolJust need to change
url
touri
@jiggytom that link doesn't work for me
Todo
invalid link
)@seanyesmunt I added a basic test for local links.
BTW Is there a way to validate a lbry uri?currently the app breaks (green screen + errors) if you click an uri like:
lbry:wrong#uri
Should this be handle in this
PR
?@tzarebczan is this a known / valid issue ? ^^I totally forgot about
lbryURI
, I'll implement this ASAP 😛https://github.com/lbryio/lbry-redux/blob/master/src/lbryURI.js
@seanyesmunt I guess @kauffj wanted to just keep one type of heading:
h3
I think is better to just set all titles to the same size to have more consistency.
@btzr-io I think some variation in heading sizing is useful for information layout. But I agree using CSS to restrict sizing rather than restricting the tags themself is a superior solution. So maybe just size h1, h2, h3 all the same?
I think
h1
andh2
are commonly used for titles and h3...h6 for subtitles@kauffj maybe split them in two groups title:
h1, h2
, subtitle:h3..h6
?Github markdown (example):
H1
H2
H3
H4
H5
H6
Todo
@btzr-io what I'm trying to avoid in both of my suggestions is rendered markup with headers that is larger than the content outside of it. Basically, I don't want people to be able to break the sizing hierarchy that their content is embedded inside of. Hopefully that made sense. As long as we're doing that, I'm not particularly attached to any one solution.
@btzr-io internal links look good, glad you found the validator. Hover over support also looks good!
The green screen issue is a known bug, filed under https://github.com/lbryio/lbry-app/issues/959.
This is awesome