Skip to main content

Module providers

Module providers 

Source
Expand description

The built-in preview providers, registered by the files plugin unless it is told not to (FilesPlugin::without_builtin_previews):

  • Images (feature image-previews, on by default): PNG and JPEG decoded with the image crate, scaled down, with their dimensions;
  • Markdown: a Markdown document drawn simply (headings, items, quotes, code, rules; emphasis and links as plain text): no Markdown renderer is in the tree, this is a small one of its own;
  • Text: the first lines of a text or code file, in a monospace font; any file that reads as UTF-8 text, at the lowest priority;
  • Folders: what a folder holds and its first images, as the providers preview them.

Structs§

Folders
Folders: what they hold, and their first images.
Images
PNG and JPEG images, decoded with the image crate.
Markdown
Markdown, drawn simply.
Text
Text and code: the first lines.

Functions§

builtin
The built-in providers, highest priority first.
markdown
A Markdown text as blocks: headings, paragraphs, items, quotes, code lines and rules.