marco_core/render/options.rs
1//! Rendering options and configuration.
2
3use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Hash, Serialize, Deserialize)]
6/// Configuration options for HTML rendering.
7pub struct RenderOptions {
8 /// Enable syntax highlighting for fenced code blocks when possible.
9 pub syntax_highlighting: bool,
10 /// Show line numbers in rendered code blocks.
11 pub line_numbers: bool,
12 /// Theme name used by renderer and highlighter integrations.
13 pub theme: String,
14}
15
16impl Default for RenderOptions {
17 fn default() -> Self {
18 Self {
19 syntax_highlighting: true,
20 line_numbers: false,
21 theme: "github".to_string(),
22 }
23 }
24}