/** * @file * * The inline block ids of a run of inline text, read the way Obsidian's metadata worker reads them. The worker's inline * block id tokenizer takes `^id` when it reaches the `^` at a token boundary and the id runs to the end of the inline * content it is tokenizing: the start of that content, a `^` after whitespace, which its locator finds, or the end of any * other inline token. So `a\*^id`, ``a`c`^id`` and `a*b*^id` each end with an id, while `a*^id` and `a\q^id` do not. * Emphasis, strong, a strikethrough, a highlight, a comment and a link's text tokenize their own content, so an id can * end any of those too: `*a ^id* b` holds one. * * This is a port of the inline tokenizer loop of `remark-parse` 8, with `commonmark` and `gfm` on, and of the tokenizers * the worker runs in it, Obsidian's own among them. A tokenizer is tried at every position the loop reaches; when none * matches, the text tokenizer eats up to the next position any tokenizer's locator finds. The tokenizers whose only part * here is where they end are approximated: an HTML tag, an autolink, a bare URL, a link's destination. */ /** * Finds the block ids a run of inline text holds, in document order: the one ending the text, and those ending the * content of an inline token inside it. A paragraph takes the last of them, and a list item the first. * * @param text - The inline text, without its trailing line breaks. * @returns The ids. */ export declare function findInlineBlockIds(text: string): string[];