upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/54.md
diff options
context:
space:
mode:
Diffstat (limited to '54.md')
-rw-r--r--54.md33
1 files changed, 19 insertions, 14 deletions
diff --git a/54.md b/54.md
index 7870330..2090182 100644
--- a/54.md
+++ b/54.md
@@ -13,15 +13,20 @@ Articles are identified by lowercase, normalized ascii `d` tags.
13### Articles 13### Articles
14```jsonc 14```jsonc
15{ 15{
16 "content": "A wiki is a hypertext publication collaboratively edited and managed by its own audience.", 16 "content": "A wiki is a hypertext publication collaboratively edited and managed by its own audience.",
17 "tags": [ 17 "tags": [
18 [ "d", "wiki" ], 18 ["d", "wiki"],
19 [ "title", "Wiki" ], 19 ["title", "Wiki"],
20 ] 20 ]
21} 21}
22``` 22```
23 23
24[INSERT NORMALIZATION EXAMPLES] 24### `d` tag normalization rules
25
26- Any non-letter character MUST be converted to a `-`.
27- All letters MUST be converted to lowercase.
28
29### Content rules
25 30
26The content should be Markdown, following the same rules as of [NIP-23](23.md), although it takes some extra (optional) metadata tags: 31The content should be Markdown, following the same rules as of [NIP-23](23.md), although it takes some extra (optional) metadata tags:
27 32
@@ -88,14 +93,14 @@ Users can request other users to get their entries merged into someone else's en
88 93
89```jsonc 94```jsonc
90{ 95{
91 "content": "I added information about how to make hot ice-creams", 96 "content": "I added information about how to make hot ice-creams",
92 "kind": 818, 97 "kind": 818,
93 "tags": [ 98 "tags": [
94 [ "a", "30818:<destination-pubkey>:hot-ice-creams", "<relay-url>" ], 99 [ "a", "30818:<destination-pubkey>:hot-ice-creams", "<relay-url>" ],
95 [ "e", "<version-against-which-the-modification-was-made>", "<relay-url>' ], 100 [ "e", "<version-against-which-the-modification-was-made>", "<relay-url>' ],
96 [ "p", "<destination-pubkey>" ], 101 [ "p", "<destination-pubkey>" ],
97 [ "e", "<version-to-be-merged>", "<relay-url>", "source" ] 102 [ "e", "<version-to-be-merged>", "<relay-url>", "source" ]
98 ] 103 ]
99} 104}
100``` 105```
101 106