pub fn display(target: &str) -> StringExpand description
Returns the display of the link target target, that is, the text that a
link written with \url or \email shows.
The display is the target without a leading prefix from DISPLAY_PREFIXES
(http://, https:// or mailto:), and without the trailing characters from
DISPLAY_TRAILING (/, # and ?). The prefixes are compared exactly,
including the letter case. The display can be empty, as for https://.
The LaTeX hooks of the latex-recomposed backend compute the same display in
LaTeX (latex).
§Examples
use flm_core::stdlib::features::href::display;
assert_eq!(display("https://example.com/?#"), "example.com");
assert_eq!(display("mailto:a@b.c"), "a@b.c");
assert_eq!(display("ftp://example.com/"), "ftp://example.com");