mirror of
https://github.com/svemagie/obsidian-micropub.git
synced 2026-05-15 03:48:52 +02:00
2b2e5f33bf
- Add IndieAuth.ts: full PKCE sign-in flow via GitHub Pages relay - Add docs/index.html: client_id page fetched by IndieKit for app info - Add docs/callback/index.html: relay that forwards to obsidian:// URI - Update SettingsTab.ts: signed-in/signed-out UI, Sign In button - Update types.ts: authorizationEndpoint, tokenEndpoint, me fields - Update main.ts: register obsidian://micropub-auth protocol handler
16 lines
658 B
TypeScript
16 lines
658 B
TypeScript
/**
|
|
Query whether the given character has a `Grapheme_Cluster_Break`
|
|
value of `Extend` in Unicode.
|
|
*/
|
|
export declare function isExtendingChar(code: number): boolean
|
|
|
|
/**
|
|
Returns a next grapheme cluster break _after_ (not equal to) `pos`,
|
|
if `forward` is true, or before otherwise. Returns `pos` itself if no
|
|
further cluster break is available in the string. Moves across
|
|
surrogate pairs, extending characters (when `includeExtending` is
|
|
true, which is the default), characters joined with zero-width joiners,
|
|
and flag emoji.
|
|
*/
|
|
export declare function findClusterBreak(str: string, pos: number, forward?: boolean, includeExtending?: boolean): number
|