Skip to main content

script

Function script 

Source
pub fn script(text: String, script: Script) -> String
Expand description

A run’s Markdown text with its script — wrapped for <sub> / <sup> under the fallback, unchanged otherwise. Call it after strikethrough, before the link (docling-core’s serialize_subscript / _superscript).