Skip to main content

Module bare_urls

Module bare_urls 

Source
Expand description

Detects links that are not linkified, e.g., in Markdown such as Go to https://example.com/. Suggests wrapping the link with angle brackets: Go to <https://example.com/>. to linkify it.

Re-exportsยง

use core::ops::Range; ๐Ÿ”’
use std::sync::LazyLock; ๐Ÿ”’
use regex::Regex; ๐Ÿ”’
use rustc_errors::Applicability; ๐Ÿ”’
use rustc_errors::DiagDecorator; ๐Ÿ”’
use rustc_hir::HirId; ๐Ÿ”’
use rustc_resolve::rustdoc::pulldown_cmark::DefaultBrokenLinkCallback; ๐Ÿ”’
use rustc_resolve::rustdoc::pulldown_cmark::Event; ๐Ÿ”’
use rustc_resolve::rustdoc::pulldown_cmark::Tag; ๐Ÿ”’
use rustc_resolve::rustdoc::pulldown_cmark::TextMergeWithOffset; ๐Ÿ”’
use rustc_resolve::rustdoc::source_span_for_markdown_range; ๐Ÿ”’
use tracing::trace; ๐Ÿ”’
use crate::core::DocContext; ๐Ÿ”’
use crate::html::markdown::main_body_opts; ๐Ÿ”’
use crate::clean::*; ๐Ÿ”’

Staticsยง

URL_SCHEME_HOST_REGEX ๐Ÿ”’

Functionsยง

find_raw_urls ๐Ÿ”’
visit_item ๐Ÿ”’