Mercurial
view markdown_converter/README.md @ 279:b3b547563ec7
Add Google connector service and agent wiki
Implement the C/Seobeo Google Drive and Gmail connector with encrypted OAuth storage, Zenbu authentication, browser testing, AI tool discovery, chunked HTTP decoding, and Bazel coverage. Consolidate repository guidance into progressive wiki documentation and enforce arena-first allocation for new first-party C code.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 84c338fd-0939-4bb3-b7f3-1062eb213e5d
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 17 Aug 2026 22:22:36 -0700 |
| parents | b818a4561a3c |
| children |
line wrap: on
line source
# markdown_converter Markdown to HTML converter written in C, with WASM support for browser use. ## Features - Headings, paragraphs, lists - Code blocks with syntax highlighting - Links and images - Bold, italic, inline code - Blockquotes ## Files | File | Description | |------|-------------| | `markdown_to_html.h` | Public API header | | `markdown_to_html.c` | C implementation | | `markdown_to_html.js` | JavaScript wrapper for WASM | | `markdown_to_html.css` | Default styles | | `tests/` | Test cases | ## Usage (C) ```c #include "markdown_converter/markdown_to_html.h" char* html = markdown_to_html(markdown_string); // use html... markdown_free(html); ``` ## Usage (WASM/JavaScript) ```javascript import createModule from 'markdown_converter/markdown_to_html_wasm/markdown_to_html_bin.js'; const Module = await createModule(); const toHtml = Module.cwrap('markdown_to_html', 'number', ['string']); const free = Module.cwrap('markdown_free', null, ['number']); const ptr = toHtml(markdownString); const html = Module.UTF8ToString(ptr); free(ptr); ``` ## Building ```bash bazel build //markdown_converter:markdown_to_html bazel build //markdown_converter:markdown_to_html_wasm # WASM version ```