aboutsummaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-09-13 18:24:28 -0700
committerAdam Soltys <[email protected]>2026-09-13 18:24:28 -0700
commitb6e5faf417a8d3fb72a9e38458800db555742457 (patch)
tree10c7693562cdde9ea4fee31656731c778722e56f /static
parentb11ae2e1811bd5dc6965d127414d8f4f03f248cd (diff)
downloadcoinosv3-b6e5faf417a8d3fb72a9e38458800db555742457.tar.gz
coinosv3-b6e5faf417a8d3fb72a9e38458800db555742457.zip
Markdown in a post reads as what it means.
A kind 1 is specified as plain text — NIP-10 says markup SHOULD NOT be used — but bridges and cross-posters emit it anyway, and of the three things we could do with it we were doing the worst: the URL inside ![cover](…) rendered as a picture while the "![cover](" sat above it as litter. That is a real post from a real account, not a hypothetical. Images and links, and nothing else. ![alt](url) is a picture, [text](url) is a link that reads as its text. Headings, bold and italics are deliberately NOT honoured: # opens a hashtag and * turns up in ordinary prose, so supporting those would mangle normal posts to tidy up the rare bridged one. One thing markdown gives us that guessing never could: ![…] is the author stating outright that the URL is an image, so a picture on a CDN path with no file extension now renders as a picture instead of a bare link. The URL rendering is one function now rather than a branch inside the splitter, since a markdown link and a bare link deserve the same answer about what they point at. tools/markdown-note-test.js covers both shapes the real post came in (including the newline after the paren), the no-extension case, and — the one that matters most — that brackets, parens, hashtags and stars in ordinary prose are left exactly as written. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_019mrt228Upn9nNCwGixzSLx
Diffstat (limited to 'static')
0 files changed, 0 insertions, 0 deletions