diff options
| author | fiatjaf <fiatjaf@gmail.com> | 2024-05-25 09:46:46 -0300 |
|---|---|---|
| committer | fiatjaf <fiatjaf@gmail.com> | 2024-05-25 09:46:46 -0300 |
| commit | 92d5837b0cf474503b9ebdf2676ba266fc265bdd (patch) | |
| tree | ad0ddfdae214f09467d0366b2018c71b233d29a6 | |
| parent | 5d1d1c178ec1761bac4867f69ae1c59bc7c0ca37 (diff) | |
nip54: clarify wikilink format.
| -rw-r--r-- | 54.md | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -36,6 +36,11 @@ The content should be Markdown, following the same rules as of [NIP-23](23.md), | |||
| 36 | 36 | ||
| 37 | One extra functionality is added: **wikilinks**. Unlike normal Markdown links `[]()` that link to webpages, wikilinks `[[]]` link to other articles in the wiki. In this case, the wiki is the entirety of Nostr. Clicking on a wikilink should cause the client to ask relays for events with `d` tags equal to the target of that wikilink. | 37 | One extra functionality is added: **wikilinks**. Unlike normal Markdown links `[]()` that link to webpages, wikilinks `[[]]` link to other articles in the wiki. In this case, the wiki is the entirety of Nostr. Clicking on a wikilink should cause the client to ask relays for events with `d` tags equal to the target of that wikilink. |
| 38 | 38 | ||
| 39 | Wikilinks can take these two forms: | ||
| 40 | |||
| 41 | 1. `[[Target Page]]` -- in this case it will link to the page `target-page` (according to `d` tag normalization rules above) and be displayed as `Target Page`; | ||
| 42 | 2. `[[target page|see this]]` -- in this case it will link to the page `target-page`, but will be displayed as `see this`. | ||
| 43 | |||
| 39 | ### Merge Requests | 44 | ### Merge Requests |
| 40 | 45 | ||
| 41 | Event `kind:818` represents a request to merge from a forked article into the source. It is directed to a pubkey and references the original article and the modified event. | 46 | Event `kind:818` represents a request to merge from a forked article into the source. It is directed to a pubkey and references the original article and the modified event. |