Skip to main content

styled_to_html

Function styled_to_html 

Source
pub fn styled_to_html(doc: &StyledText, style: DocStyle) -> String
Expand description

Write a styled document as an HTML fragment: one <p> per paragraph, <span style="…"> per run, with <b>/<i>/<u>/<s>/<code>/<a> where a tag says it more plainly.

Day API ↩ Guides· daybrite.dev