romele / git-trace public
62 commits · 1 branch · 1 tag · 1 contributor (top: Romele) · first commit 3d ago · last push 11m ago
src/markdown.h
#ifndef GT_MARKDOWN_H #define GT_MARKDOWN_H #include <stddef.h> struct buf; /* Render a safe markdown subset into b as HTML. * Block level: ATX + setext headings, fenced code, lists, quotes, * rules, paragraphs. Inline: `code`, **bold**, *em*, [links]() and * bare https?:// autolinks. Everything else is passed through * escaped — like hl_emit, the renderer can produce ugly output on * adversarial input but never unescaped markup. */ void md_emit(struct buf *b, const char *data, size_t len); #endif