Skip to main content

render_markdown

Function render_markdown 

Source
pub fn render_markdown(w: &mut dyn Write, v: &Value) -> Result<()>
Expand description

Markdown(spec §10.7): null→无输出;标量→裸值;对象→| Field | Value | 两列表(插入序,与 text 渲染同源;Go 对 map 用 | Key | Value | 表头,Rust 侧 struct/map 序列化后同形,统一 Field 表头——见 README 差异节); 对象数组→以首元素键为列的表;标量数组→- item 子弹;单元格转义 |→\|、换行→<br>。