// current link contract
type LinkAnnotation = {
starts: number[]
ends: number[]
type: 'link'
ref: string
}
embed
. I believe it make sense we call inline references the same way:type InlineEmbedAnnotation = {
type: 'embed'
starts: number[]
ends: number[]
ref: string // 'hm://... with #BlockRef
attributes: {}
}
let mention = {
type: 'embed'
ref: 'hm://a/ACCOUNT_ID',
starts: [0],
ends: [1],
attributes: {}
}
@
and this will open a list menu similar to the current Slash command:@
). The text we will render inside this account mentions will be the current account's alias for the account mentioned.let document_mention = {
type: 'embed'
ref: 'hm://d/DOC_ID?v=DOC_VERSION',
starts: [0],
ends: [1],
attributes: {}
}
#
for example. The problem of using #
is that is the same character we use to create Headings. I believe having a list with subgroups is the best option. The text we will render inside this document mentions will be the current document's title for the account mentioned. for the group will be the group title.