/ Book Mode / Feature Presets

The [features] table in sena.toml provides convenient one-click flags for common web capabilities. When enabled, MoPress automatically expands these presets into the appropriate [extensions] configurations (scripts, stylesheets, meta tags, and robots directives).

FieldTypeDefaultDescription
highlight-enabledBoolfalseEnable client-side code syntax highlighting via Highlight.js
highlight-themeString"github"Theme name for syntax highlighting (e.g. github-dark, tokyo-night-dark)
mathjax-enabledBoolfalseEnable MathJax math formula rendering
open-graphBooltrueAutomatically inject Open Graph social metadata tags
twitter-cardBooltrueAutomatically inject Twitter Card metadata tags
robots-txtBooltrueAutomatically emit standard robots.txt file into output

features act as configuration syntactic sugar. During config loading, active feature flags automatically append necessary assets (CSS/JS files, tags) directly into your extension pipeline. If you need bespoke custom styling or custom CDNs, simply keep the preset disabled and provide your custom assets via [extensions].