mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-07-28 16:08:29 -04:00
Quoted highlights (#1438)
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
9
84.md
9
84.md
@@ -40,3 +40,12 @@ last value of the tag.
|
|||||||
### Context
|
### Context
|
||||||
Clients MAY include a `context` tag, useful when the highlight is a subset of a paragraph and displaying the
|
Clients MAY include a `context` tag, useful when the highlight is a subset of a paragraph and displaying the
|
||||||
surrounding content might be beneficial to give context to the highlight.
|
surrounding content might be beneficial to give context to the highlight.
|
||||||
|
|
||||||
|
## Quote Highlights
|
||||||
|
A `comment` tag may be added to create a quote highlight. This MUST be rendered like a quote repost with the highlight as the quoted note.
|
||||||
|
|
||||||
|
This is to prevent the creation and multiple notes (highlight + kind 1) for a single highlight action, which looks bad in micro-blogging clients where these notes may appear in succession.
|
||||||
|
|
||||||
|
p-tag mentions MUST have a `mention` attribute to distinguish it from authors and editors.
|
||||||
|
|
||||||
|
r-tag urls from the comment MUST have a `mention` attribute to distinguish from the highlighted source url. The source url MUST have the `source` attribute.
|
||||||
|
Reference in New Issue
Block a user