pub fn render(input: &str, channel: Channel) -> Vec<String>Expand description
Converts a finished document in one go. Splits at safe points when it exceeds the limit.
Split points are chosen from the structure, not the rendered output — only points where a
block has ended and no markup is open become boundaries. Cutting by character count after
conversion leaves <code> open across the cut, and the channel returns 400 (DESIGN.md).
§Example
use mdwire::{render, Channel};
let parts = render("## 제목\n\n**굵게** 있는 문단", Channel::TelegramHtml);
assert_eq!(parts, vec!["<b>제목</b>\n\n<b>굵게</b> 있는 문단"]);