Skip to main content

render

Function render 

Source
pub fn render(content: &str, options: &CsvTableOptions) -> String
Expand description

Render a CSV/TSV string as HTML. Caller supplies options; content is HTML-escaped before emission.

The table is wrapped in the same .moss-table-scroll container the Markdown-table renderer uses (ast::render). CSV/TSV embeds are the data-heavy path, so they get the identical accessible horizontal-scroll affordance (keyboard-focusable, no page overflow on a narrow viewport) and share the default table styling — one consistent look for every moss table.