Skip to main content

Module link

Module link 

Source
Expand description

Who opens a link.

Installed once at boot like the highlighter, and read at click. Without it a link goes to App::open_url. A #fragment link reaches neither: it names a heading of the document it is in — see heading.

Functions§

heading
The block of the heading fragment (without its #) names in doc. A slug already taken by an earlier heading gets -1, -2, … as on GitHub. The fragment is compared as written: no percent-decoding.
slug
The anchor GitHub gives a heading: lowercased, punctuation dropped but for - and _, each space a -.

Type Aliases§

LinkHandler
Opens a link a reader clicked: an inline link or a bookmark card. base is the document’s crate::render::Editing::base; the URL is as written.