Module inline

Module inline 

Source
Expand description

Inline style extraction for markdown text.

This module extracts styled regions (bold, italic, code, links, etc.) from the inline parse trees, plus GitHub autolink references.

Structs§

GitHubContext
GitHub repository context for resolving relative references like #123.
NakedUrl
A naked URL detected in text (not inside markdown link syntax).
RawGitHubMatch
A raw match from regex detection (before validation).
StyledRegion
A styled region of inline text with its delimiters.
TextStyle
Style attributes for inline text.

Enums§

GitHubRef
A detected GitHub reference.

Functions§

detect_github_references_in_line
Detect GitHub references in a single line of text.
detect_naked_urls
Detect naked URLs in a single line of text.
extract_all_inline_styles
Extract all inline styles from a markdown tree. Returns a flat Vec sorted by start byte position.
github_refs_to_styled_regions
Convert validated GitHub references into styled regions.
naked_urls_to_styled_regions
Convert naked URLs into styled regions (clickable links). For GitHub URLs with validated refs, sets display_text for shortening. If context is provided, refs from the same repo omit the owner/repo prefix.
styles_in_range
Get inline styles that overlap with a byte range. Uses binary search for efficient lookup.