mbr-core 0.7.0

Render core of mbr, the markdown browser: markdown, templates, config, repository scan, search and indexes. Internal crate of mbr-markdown-browser, versioned in lockstep with it; no API stability guarantees
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Shared constants used across multiple modules.

/// Average reading speed for reading time estimates.
pub const WORDS_PER_MINUTE: usize = 200;

/// JPEG encoding quality (0-100 scale) for cover images.
pub const JPEG_QUALITY: u8 = 85;

/// YouTube embed width in pixels (16:9 aspect ratio).
pub const YOUTUBE_EMBED_WIDTH: u16 = 560;

/// YouTube embed height in pixels (16:9 aspect ratio).
pub const YOUTUBE_EMBED_HEIGHT: u16 = 315;