Skip to main content

Module render

Module render 

Source
Expand description

Markdown renderer for knowledge-base entries.

Produces the body shown in cmp documentation popovers and LSP hover. Structure:

header : # {label} plus an italic kind tag (Keyword / Function / Type) block : signature (functions only) in a fenced sql block body : one-line description example : fenced sql block with a worked example footer : link to the canonical Postgres docs

Functionsยง

render_markdown
wrap_paragraphs
Greedy word-wrap each paragraph at width columns. Preserves blank lines (paragraph separators), leaves fenced code blocks (triple-backtick) and indented lines untouched.