Skip to main content

Module links

Module links 

Source
Expand description

Annotation hyperlink extractors (Protégé Wave 2 *LinkExtractor ports).

Keep regex tables in sync with extension/webview-ui/src/utils/annotationLinks.ts.

Structs§

AnnotationLink
A single hyperlink match inside annotation text.

Functions§

extract_first_link_url
First matching link URL for text, if any (Protégé extractLinkLiteral style).
extract_links
Extract all annotation hyperlinks from text (non-overlapping, left-to-right).
extract_with_pattern
Build a regex-based extractor for custom patterns (Protégé RegExBasedLinkExtractor).
linkify_markdown_text
Escape markdown specials, then wrap extracted link spans as [text](url).