jotview

v0.7.0
io.github.jotbins/jotview Checked 1 day ago Published 1 month ago

Turn markdown and Mermaid diagrams into rendered jotbins.com links, and read them back.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

render_markdown Render markdown with jotbins

Turn markdown (GitHub-flavored, with ```mermaid diagrams, $math$ / $$math$$, > [!NOTE] callouts and :emoji: shortcodes) into a link that renders it as a page on jotbins.com. Returns a ready-made markdown link to show the user. Small documents live entirely in the link; larger ones are uploaded to surl.jotbins.com for a short link that expires after 30 days unused unless keep is true.

ParameterTypeDescription
contentstringThe markdown to render. Pass this or path.
keepbooleanMake a shortened link permanent instead of expiring after 30 days unused.
pathstringA .md/.markdown/.mdx/.txt file to render instead of content — saves sending the text. Relative to /tmp; only files under /tmp can be read.
shortenstringDefault "auto" shortens long links. "never" keeps the document out of any upload (long link); "always" shortens even small ones.
titlestringLink text to show instead of the document's first heading.