buttercat1791 on Nostr: The event content itself is Markdown, I believe. Like Læserin mentioned, some ...
The event content itself is Markdown, I believe. Like Læserin mentioned, some clients may switch to ASCIIDoc. We'll probably need to support both, eventually, but Markdown is a good start.
So we need a Markdown-to-HTML converter, and eventually an ASCIIDoc-to-HTML converter.
The API endpoint workflow would be:
1. Look up 30040 event and associated 30041 events (or single 30041 event to return a chapter at a time, but that's implementation details).
2. Tie together the Markdown contents or relevant events into a single giant Markdown string/stream.
3. Pass the string/stream through a converter to produce HTML.
4. Return HTML to the caller.
Published at
2024-06-25 23:32:53Event JSON
{
"id": "9914ade885fde841b22bae73ff3025e29c6f3e7b3120d236227de36879a6c51b",
"pubkey": "70122128273bdc07af9be7725fa5c4bc0fc146866bec38d44360dc4bc6cc18b9",
"created_at": 1719351173,
"kind": 1,
"tags": [
[
"p",
"70122128273bdc07af9be7725fa5c4bc0fc146866bec38d44360dc4bc6cc18b9"
],
[
"p",
"dd664d5e4016433a8cd69f005ae1480804351789b59de5af06276de65633d319"
],
[
"p",
"72f9755501e1a4464f7277d86120f67e7f7ec3a84ef6813cc7606bf5e0870ff3"
],
[
"e",
"99497547aeeec2f6b2ea181c3e6fdc083c32390b9cb743fbe2fd20253c567851",
"wss://nostr.fmt.wiz.biz",
"root"
],
[
"e",
"d788524713984211c3591830b99c8836e2199bbbcd049b3fe751d8c388ca0e26",
"wss://theforest.nostr1.com",
"reply"
]
],
"content": "The event content itself is Markdown, I believe. Like Læserin mentioned, some clients may switch to ASCIIDoc. We'll probably need to support both, eventually, but Markdown is a good start.\n\nSo we need a Markdown-to-HTML converter, and eventually an ASCIIDoc-to-HTML converter.\n\nThe API endpoint workflow would be:\n\n1. Look up 30040 event and associated 30041 events (or single 30041 event to return a chapter at a time, but that's implementation details).\n2. Tie together the Markdown contents or relevant events into a single giant Markdown string/stream.\n3. Pass the string/stream through a converter to produce HTML.\n4. Return HTML to the caller.",
"sig": "795e6a8a09a43b66bd49ae62906afd536e82fc275f93cc74936e7e6601be42e566e1d95907a417ec64999a2a580f8810bbe5e2bc12069b27f454567bd32d49a1"
}