ses-pdf 0.2.0

Professional PDF report engine for structural engineering calculations and drawing sheets — equations, tables, charts, Arch sizes, and title blocks via Typst.
Documentation
1
2
3
4
5
6
7
8
use crate::element::HeadingLevel;
use super::escape::escape_text;

pub(crate) fn generate_heading(text: &str, level: HeadingLevel) -> String {
    let prefix = level.typst_prefix();
    let escaped = escape_text(text);
    format!("\n{prefix} {escaped}\n")
}