{"service":"fullstacked-cloud-docs","version":"1.25.8","environment":"live","generatedAt":"2026-11-30T03:33:22.069Z","formats":{"html":"https://docs.fullstacked.cloud/","markdown":"https://docs.fullstacked.cloud/?format=md","json":"https://docs.fullstacked.cloud/?format=json"},"services":{"console":"https://console.fullstacked.cloud","auth":"https://auth.fullstacked.cloud","git":"https://git.fullstacked.cloud","tunnels":"https://tunnels.fullstacked.cloud","tunnelsHost":"tunnels.fullstacked.cloud","mcp":"https://mcp.fullstacked.cloud","install":"https://install.fullstacked.cloud","docs":"https://docs.fullstacked.cloud"},"runtime":{"version":"1.0.0-1861","guide":"https://docs.fullstacked.cloud/runtime?format=md"},"dataEngineLimits":{"postgres":{"image":"postgres:18.6-alpine","port":5432,"memoryMB":256,"cpus":2,"pids":256},"redis":{"image":"redis:8.10.2-alpine","port":6379,"memoryMB":256,"cpus":1,"pids":128},"mongodb":{"image":"mongo:8.3.11-noble","port":27017,"memoryMB":512,"cpus":2,"pids":512},"s3":{"image":"rustfs/rustfs:1.0.0","port":9000,"memoryMB":768,"cpus":2,"pids":1024},"p2p":{"image":"fullstackedorg/p2p:0.5.0","port":4444,"memoryMB":256,"cpus":1,"pids":128}},"projectRuntimeEnv":[{"name":"TUNNELS_HOST","injectedBy":"GET /api/v1/projects/:id/env","description":"Tunnels hub host for tunnel.register from fullstacked/tunnel."},{"name":"AUTH_HOST","injectedBy":"GET /api/v1/projects/:id/env","description":"Bare host of the Authentication service."},{"name":"AUTH_URL","injectedBy":"GET /api/v1/projects/:id/env","description":"Base URL of the Authentication service (GET ${AUTH_URL}/api/v1/me)."},{"name":"AUTH_TOKEN","injectedBy":"Client GUI / action runner at launch (in memory, never stored)","description":"The signed-in user's fsc_* bearer token for this run (from the Client GUI, a project-scoped fsc_prj_ token: the user's identity and the project's linked resources only): Authorization: Bearer ${AUTH_TOKEN}."}],"topics":[{"slug":"markdown","title":"Project Docs in Markdown","url":"https://docs.fullstacked.cloud/markdown","markdownUrl":"https://docs.fullstacked.cloud/markdown?format=md","jsonUrl":"https://docs.fullstacked.cloud/markdown?format=json","markdown":"# Project Docs in Markdown\n\nThe FullStacked Cloud Console renders the Markdown files of a project (`*.md`, `*.markdown`) as documentation: GitHub Flavored Markdown, Mermaid diagrams, LaTeX formulas and live HTML/CSS/JS previews. Open a project in the Console: **Files** preselects the root `README.md`, and every Markdown file opens in **Rendered** mode, with **Code** for the raw source and **Split** (writers only) to edit with a live preview.\n\nThis page lists what the renderer supports, so documentation written for it, by hand or by an agent, renders the first time.\n\n## GitHub Flavored Markdown\n\n| Feature | Syntax | Notes |\n| :--- | :--- | :--- |\n| Headings | `#` to `######` | Each heading gets a GitHub-style id (`## Getting Started` → `#getting-started`) that links can target. |\n| Line breaks | a single newline | A single newline inside a paragraph is a line break, as in GitHub comments. Leave a blank line to start a new paragraph. |\n| Tables, task lists, strikethrough, autolinks | GFM | `- [x] done`, `~~old~~`, bare `https://` URLs. |\n| Code fences | ```` ```ts ```` | Syntax-highlighted with a **Copy** button: TypeScript/TSX, JavaScript/JSX, JSON, HTML/XML/SVG, CSS, SQL, Python, Go, Bash/sh/zsh/`.env`/Dockerfile, YAML/TOML and Markdown. Other languages show as plain text. |\n| Alerts | `> [!NOTE]` | `NOTE`, `TIP`, `IMPORTANT`, `WARNING` and `CAUTION`, as on GitHub. |\n| Raw HTML | `<details>`, `<kbd>`, `<img>`, ... | Sanitized: scripts, event handlers, `<style>`, `<form>`, `<iframe>`, `<object>` and `<embed>` are removed. Use a [live preview](#html-css-js-live-previews) for interactive HTML. |\n\n```markdown\n> [!TIP]\n> Run `npm run dev` before opening the app.\n\n| Engine | Port |\n| :--- | ---: |\n| PostgreSQL | 5432 |\n```\n\n### Links\n\nLinks resolve like files in the repository, relative to the folder of the open document:\n\n| Link | Opens |\n| :--- | :--- |\n| `#getting-started` | That heading of the same document. |\n| `./setup.md`, `../docs/api.md#errors`, `/README.md` | That file in **Files** (with its heading), with Back/Forward history. A leading `/` is the repository root. |\n| `src/db.ts#L10-L24` | That source file, lines 10 to 24 highlighted. |\n| A path of a Git submodule | The submodule's repository (another project, or its external host). |\n| `https://...`, `mailto:...` | A new browser tab. |\n\n### Images\n\nRelative image paths (`![Schema](./assets/schema.png)`, or `<img src=\"../diagrams/flow.svg\">`) are read from the repository on the same branch, so they render in private projects too. Supported types: PNG, JPEG, GIF, WebP, SVG and AVIF. External `https://` images and `data:image/...` URIs work as is.\n\n## Mermaid diagrams\n\nA ```` ```mermaid ```` fence renders as a diagram card with zoom (50% to 300%), **Expand** (fullscreen with pan, wheel and pinch zoom, **Fit** and **1:1**) and **Copy** (the diagram source). A diagram with a syntax error shows the error in its card; the rest of the document still renders.\n\n````markdown\n```mermaid\nflowchart LR\n    App[\"index.tsx\"] --> Action[\"actions/add-todo.ts\"]\n    Action --> DB[(\"PostgreSQL\")]\n```\n````\n\nSupported diagram types: `flowchart`, `graph`, `sequenceDiagram`, `classDiagram`, `stateDiagram` (and `-v2`), `erDiagram`, `journey`, `gantt`, `pie`, `quadrantChart`, `requirementDiagram`, `gitGraph`, `C4Context` / `C4Container` / `C4Component` / `C4Dynamic` / `C4Deployment`, `mindmap`, `timeline`, `zenuml`, `sankey-beta`, `xychart-beta`, `block-beta`, `packet-beta`, `kanban`, `architecture-beta`, `radar-beta` and `treemap-beta`.\n\n### Diagrams are validated on commit and push\n\nEvery ```` ```mermaid ```` block of a Markdown file must pass these checks:\n\n1. The first statement names one of the diagram types above.\n2. Block openers are closed by `end`: `subgraph` in flowcharts, `loop`, `alt`, `opt`, `par`, `critical`, `break`, `rect` and `box` in sequence diagrams, and so on.\n3. Brackets and double quotes are balanced. Quote labels that contain brackets or parentheses: `A[\"parse(input)\"]`.\n\nA commit of the dev state (Console, REST or MCP `projects_commit`) with an invalid diagram fails with `422 INVALID_DIAGRAMS` and the file, line and message of each issue. A `git push` is rejected per branch in the same way (Markdown files the branch adds or changes, up to 1000 files, files over 2 MiB skipped). Check diagrams before committing with `POST https://git.fullstacked.cloud/api/v1/projects/:id/validate-diagrams` (`{ branch?, file_path? }`) or the MCP tool `projects_validate_diagrams`.\n\nTo show Mermaid source as code instead of a diagram, wrap it in a longer fence (four backticks around the three-backtick block, as in the example above).\n\n## Formulas (LaTeX)\n\nFormulas render with KaTeX, which is only loaded for documents that contain math.\n\n| Kind | Syntax | Renders as |\n| :--- | :--- | :--- |\n| Display | `$$ ... $$` or `\\[ ... \\]` on their own lines, or a ```` ```math ```` fence (also `latex`, `katex`, `tex`) | A **Formula** card, centered, with a **Copy** button for the LaTeX source. |\n| Inline | `$...$` or `\\( ... \\)` inside text | Inline math; hovering shows the LaTeX source. |\n| Inline, display style | `$$...$$` inside a paragraph | A full-size formula kept in the line. |\n\n````markdown\nThe monthly cost is $C = n \\cdot p$ for $n$ seats at price $p$.\n\n$$\n\\text{latency}_{p95} = \\min\\{ t : P(T \\le t) \\ge 0.95 \\}\n$$\n\n```math\n\\sum_{i=1}^{n} i = \\frac{n(n+1)}{2}\n```\n````\n\nInline `$...$` follows Pandoc's rules so prices stay text: the opening `$` must be followed by a non-space, the closing `$` preceded by a non-space and not followed by a digit, and a span of only digits is never math. `It costs $5 or $10` stays plain text. Escape a dollar sign that should never start math as `\\$`.\n\nA formula with a LaTeX error renders with the error highlighted instead of failing the document. Underscores inside `\\text{...}` are escaped for you (`\\text{max_retries}` works).\n\n## HTML/CSS/JS live previews\n\nDocument UI with a live preview rather than a static code block: the Console runs it in a sandboxed frame with a toolbar to switch **Dark** / **Light**, the width (**100%**, **768px**, **375px**), the mode (**Preview**, **Split**, **Code** with **All** / **HTML** / **CSS** / **JS** tabs), **Reload** and **Copy**.\n\nOpen a preview with any of these fences, with an optional title:\n\n- ```` ```html/css/js title=\"Pricing card\" ````\n- ```` ```html preview ````, ```` ```html:preview ````, ```` ```html-preview ````\n- ```` ```ui-snippet ````, ```` ```ui ````, ```` ```snippet ````\n\nor with a `<ui-preview title=\"...\">`, `<snippet>` or `<ui>` tag around the content.\n\n````markdown\n```html/css/js title=\"Status badge\"\n<style>\n  .badge { display: inline-flex; gap: 6px; padding: 2px 8px; border-radius: 999px;\n           font: 12px system-ui; background: #10301f; color: #4ade80; }\n  .badge.off { background: #3a1414; color: #f87171; }\n</style>\n<span class=\"badge\" id=\"b\">● Online</span>\n<button id=\"t\">Toggle</button>\n<script>\n  document.getElementById(\"t\").onclick = () => {\n    const b = document.getElementById(\"b\");\n    b.classList.toggle(\"off\");\n    b.textContent = b.classList.contains(\"off\") ? \"● Offline\" : \"● Online\";\n  };\n</script>\n```\n````\n\nHow a preview runs:\n\n| Fact | Consequence |\n| :--- | :--- |\n| Every `<style>` block becomes the CSS, every inline `<script>` the JS (run after the markup), the rest the HTML | Write one self-contained block; order between them does not matter. |\n| Sandboxed frame (`sandbox=\"allow-scripts allow-modals\"`) with an opaque origin | No access to the Console, its cookies or storage. `localStorage` and `sessionStorage` are unavailable: keep state in variables. |\n| Content Security Policy `default-src 'none'`: only inline scripts and styles | No `fetch`, XHR or WebSocket, and no external scripts or stylesheets (`<script src>`, CDN links, web font CSS). Images, fonts and media may come from `data:`, `blob:` or `https:` URLs. Prefer inline SVG. |\n| Base styles: 16px padding, system font, dark (`#0b101b`) or light (`#ffffff`) background following the toolbar | Style for both themes, or set your own background. |\n| The frame grows with its content, up to 4000px | No fixed heights needed. |\n| An uncaught error or rejected promise shows an error banner with **Reload** | Check the banner when a preview stays blank. |\n\nPreviews are not validated on commit. The documentation portal and plain Git hosts show them as code.\n\n## Checklist for agents\n\n1. Put project documentation in `README.md` and `docs/*.md`; link pages with relative paths (`./api.md#errors`) and source files with line ranges (`src/db.ts#L10-L24`).\n2. Draw architecture and flows with ```` ```mermaid ````; quote labels containing brackets, close every `subgraph` / `loop` / `alt` with `end`, and run `projects_validate_diagrams` before `projects_commit`.\n3. Write math as `$...$` inline and `$$...$$` (or ```` ```math ````) for display; escape literal dollars as `\\$`.\n4. Show UI with ```` ```html/css/js title=\"...\" ```` blocks: inline `<style>`, markup and `<script>`, no network, no external assets, inline SVG for icons.\n5. Keep images in the repository (`./assets/...`) and reference them relatively.\n6. Raw HTML is sanitized: no scripts, styles or forms outside a live preview.\n"}],"endpoints":[]}