slidetake 0.5.9 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.html CHANGED
@@ -758,6 +758,8 @@
758
758
  #brand .st-mark .logo{width:24px;height:24px;fill:var(--accent);}
759
759
  #brand .st-mark .word > span{color:var(--accent);}
760
760
  #brand img{height:40px;width:auto;display:block;}
761
+ /* every logo the deck can show is here; the slide's shows, in the theme's version (logo: light / dark) */
762
+ #brand img[hidden], body[data-mode="light"] #brand img.on-dark, body:not([data-mode="light"]) #brand img.on-light{display:none;}
761
763
  /* optional accent chip, as on the decks' title slides (brand_style: chip); plain text is the default */
762
764
  #brand .chip{display:inline-block;padding:5px 22px;border-radius:30px;color:#fff;font-family:var(--body);
763
765
  font-size:15px;font-weight:600;letter-spacing:.01em;text-shadow:none;
@@ -1083,7 +1085,7 @@
1083
1085
  <p>A comment in a slide moves you: corner, full screen, beside the words, or a split screen. Turn on <strong>Camera</strong> and watch this slide do it.</p>
1084
1086
  <h3>Your colours</h3>
1085
1087
  <p>One line, <code>accent: &quot;#3b82f6&quot;</code>, gives a deck its own colour, shaded for dark and light. On your website, decks wear your site&#39;s palette.</p>
1086
- <p><code>brand:</code> and <code>logo:</code> put your name and logo in the corner of every slide, so every frame of the video carries them.</p>
1088
+ <p><code>brand:</code> and <code>logo:</code> put your name and logo in the corner of every slide, so every frame of the video carries them: one per theme if you like, and a slide can pick another with <code>, or hide it with </code>.</p>
1087
1089
  <h2>🔴 Record slide by slide</h2>
1088
1090
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 190" font-family="IBM Plex Sans, system-ui, sans-serif">
1089
1091
 
@@ -1505,13 +1507,13 @@
1505
1507
  "use strict";
1506
1508
  (() => {
1507
1509
  // src/sample.md
1508
- var sample_default = '---\ntitle: Slidetake \u2014 write in markdown with AI, record without timeline editing\ndescription: "Write a deck in markdown, with AI, present it on a spatial canvas, and record it slide by slide: retake any slide, pick the best take, download the video. Open source."\nbrand: slidetake\npip: bottom-right\n---\n\n<!-- camera: on, full, on -->\n\n# ![](/favicon.svg) Slide<span class="st-take">take</span>\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 290" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n\n <!-- four panels -->\n <g style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5">\n <rect x="14" y="10" width="212" height="270" rx="18"/>\n <rect x="254" y="10" width="212" height="270" rx="18"/>\n <rect x="494" y="10" width="212" height="270" rx="18"/>\n <rect x="734" y="10" width="212" height="270" rx="18"/>\n </g>\n <g fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)">\n <path d="M228 110 H251"/><path d="M468 110 H491"/><path d="M708 110 H731"/>\n </g>\n\n <!-- write: a markdown file, and the AI writing it -->\n <rect x="66" y="36" width="104" height="140" rx="11" style="fill:var(--node-bg);stroke:var(--accent)" stroke-width="2"/>\n <g font-family="IBM Plex Mono, monospace" font-size="13" font-weight="600" style="fill:var(--accent)">\n <text x="78" y="62">#</text><text x="78" y="112">##</text>\n </g>\n <g style="fill:var(--text-muted)" opacity=".55">\n <rect x="92" y="53" width="52" height="9" rx="4.5"/>\n <rect x="78" y="74" width="80" height="6" rx="3"/><rect x="78" y="86" width="60" height="6" rx="3"/>\n <rect x="100" y="103" width="46" height="9" rx="4.5"/>\n <rect x="78" y="124" width="80" height="6" rx="3"/><rect x="78" y="136" width="68" height="6" rx="3"/><rect x="78" y="148" width="50" height="6" rx="3"/>\n </g>\n <path d="M176 28 l6 14 14 6 -14 6 -6 14 -6 -14 -14 -6 14 -6z" style="fill:var(--accent)"/>\n\n <!-- present: cards on a path, the one on screen framed -->\n <g fill="none" style="stroke:var(--accent);stroke-opacity:.6" stroke-width="2">\n <path d="M310 58 H320 M358 58 H368 M387 71 V92 M406 105 H416"/>\n </g>\n <g style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent);stroke-opacity:.7" stroke-width="1.5">\n <rect x="272" y="45" width="38" height="26" rx="6"/><rect x="320" y="45" width="38" height="26" rx="6"/>\n <rect x="368" y="45" width="38" height="26" rx="6"/><rect x="368" y="92" width="38" height="26" rx="6"/>\n <rect x="416" y="92" width="38" height="26" rx="6"/>\n </g>\n <rect x="358" y="82" width="58" height="46" rx="9" fill="none" style="stroke:var(--accent)" stroke-width="3"/>\n <rect x="368" y="92" width="38" height="26" rx="6" style="fill:var(--accent);fill-opacity:.45"/>\n <g style="fill:var(--text-muted)" font-size="12">\n <text x="272" y="156">\u2192 walks the path</text><text x="272" y="174">O zooms out to all</text>\n </g>\n\n <!-- record: the red dot, in either mode -->\n <circle cx="600" cy="62" r="24" fill="none" stroke="#ef4444" stroke-opacity=".45" stroke-width="2"/>\n <circle cx="600" cy="62" r="14" fill="#ef4444"/>\n <g font-size="13" text-anchor="middle">\n <rect x="522" y="102" width="156" height="30" rx="15" style="fill:var(--node-bg)"/>\n <rect x="522" y="102" width="156" height="30" rx="15" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="1.5"/>\n <text x="600" y="122" fill="currentColor"><tspan font-weight="600">Easy</tspan> \xB7 Chrome</text>\n <rect x="522" y="142" width="156" height="30" rx="15" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.6" stroke-width="1.5"/>\n <text x="600" y="162" fill="currentColor"><tspan font-weight="600">Pro</tspan> \xB7 OBS</text>\n </g>\n\n <!-- edit: pick a take, get the video -->\n <g font-size="12" text-anchor="middle">\n <rect x="752" y="36" width="96" height="27" rx="8" fill="none" style="stroke:var(--text-muted);stroke-opacity:.6" stroke-width="1.5" stroke-dasharray="4 4"/>\n <text x="800" y="54" style="fill:var(--text-muted)">Take 1</text>\n <rect x="752" y="72" width="96" height="27" rx="8" style="fill:var(--node-bg)"/>\n <rect x="752" y="72" width="96" height="27" rx="8" style="fill:var(--accent);fill-opacity:.15;stroke:var(--accent)" stroke-width="2"/>\n <text x="800" y="90" fill="currentColor">Take 2 \u2713</text>\n </g>\n <path d="M850 86 C878 86 884 96 884 108" fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)"/>\n <rect x="836" y="112" width="92" height="60" rx="10" style="fill:var(--node-bg);stroke:var(--accent)" stroke-width="2"/>\n <path d="M874 130 l16 12 -16 12z" style="fill:var(--accent)"/>\n\n <!-- the steps -->\n <g text-anchor="middle" fill="currentColor">\n <text x="120" y="222" font-size="20" font-weight="700">Write</text>\n <text x="120" y="248" font-size="14" style="fill:var(--text-muted)">in markdown, with AI</text>\n <text x="360" y="222" font-size="20" font-weight="700">Present</text>\n <text x="360" y="248" font-size="14" style="fill:var(--text-muted)">on a spatial canvas</text>\n <text x="600" y="222" font-size="20" font-weight="700">Record</text>\n <text x="600" y="248" font-size="14" style="fill:var(--text-muted)">slide by slide, retake any</text>\n <text x="840" y="222" font-size="20" font-weight="700">Edit</text>\n <text x="840" y="248" font-size="14" style="fill:var(--text-muted)">just pick the best take</text>\n </g>\n</svg>\n```\n\n<p style="text-align:center">For developers and technical educators who explain things on video. You\'re inside a Slidetake deck right now.</p>\n\n### \u23F1\uFE0F Hours, not days\n\nA video that takes two or three days to script, record and edit takes a couple of hours: an AI writes the deck, you record it slide by slide, and pick the best take of each in Studio. What comes out is ready to upload.\n\n## \u270D\uFE0F Write in markdown, with AI {#ai}\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 380" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <filter id="glow" x="-30%" y="-30%" width="160%" height="160%">\n <feGaussianBlur stdDeviation="9"/>\n </filter>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n\n <!-- the four steps -->\n <g>\n <rect x="16" y="40" width="196" height="150" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <path d="M114 70 l7 17 17 7 -17 7 -7 17 -7 -17 -17 -7 17 -7z" style="fill:var(--accent)"/>\n <text x="114" y="150" text-anchor="middle" font-size="19" font-weight="600" fill="currentColor">Claude Code</text>\n <text x="114" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">or any AI agent</text>\n </g>\n <g>\n <rect x="262" y="34" width="196" height="162" rx="18" style="fill:var(--accent)" filter="url(#glow)" opacity=".1"/>\n <rect x="262" y="40" width="196" height="150" rx="18" style="fill:var(--node-bg)"/>\n <rect x="262" y="40" width="196" height="150" rx="18" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M343 66 h26 l12 12 v34 h-38z" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linejoin="round"/>\n <path d="M369 66 v12 h12" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linejoin="round"/>\n <text x="360" y="150" text-anchor="middle" font-size="19" font-weight="600" font-family="IBM Plex Mono, monospace" fill="currentColor">deck.md</text>\n <text x="360" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">text, dot, d2, echarts, svg</text>\n </g>\n <g>\n <rect x="508" y="40" width="196" height="150" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <rect x="577" y="68" width="58" height="44" rx="7" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M588 82 l9 8 -9 8 M601 99 h12" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>\n <text x="606" y="150" text-anchor="middle" font-size="19" font-weight="600" font-family="IBM Plex Mono, monospace" fill="currentColor">npx slidetake</text>\n <text x="606" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">serves it, watches the file</text>\n </g>\n <g>\n <rect x="754" y="40" width="190" height="150" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <rect x="818" y="66" width="62" height="46" rx="7" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M818 78 h62" style="stroke:var(--accent)" stroke-width="2.5"/>\n <circle cx="826" cy="72" r="1.8" style="fill:var(--accent)"/><circle cx="833" cy="72" r="1.8" style="fill:var(--accent)"/>\n <rect x="828" y="86" width="22" height="16" rx="3" style="fill:var(--accent);fill-opacity:.55"/>\n <text x="849" y="150" text-anchor="middle" font-size="19" font-weight="600" fill="currentColor">Chrome</text>\n <text x="849" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">redraws the slide you\'re on</text>\n </g>\n\n <!-- forward: write, save, reload -->\n <path d="M214 115 H256" fill="none" style="stroke:var(--accent)" stroke-width="3" marker-end="url(#head)"/>\n <path d="M460 115 H502" fill="none" style="stroke:var(--accent)" stroke-width="3" marker-end="url(#head)"/>\n <path d="M706 115 H748" fill="none" style="stroke:var(--accent)" stroke-width="3" marker-end="url(#head)"/>\n <text x="237" y="104" text-anchor="middle" font-size="12" style="fill:var(--text-muted)">writes</text>\n <text x="483" y="104" text-anchor="middle" font-size="12" style="fill:var(--text-muted)">saved</text>\n <text x="729" y="104" text-anchor="middle" font-size="12" style="fill:var(--text-muted)">reloads</text>\n\n <!-- back: you ask for a change -->\n <path d="M849 196 C849 300 780 330 480 330 C180 330 114 300 114 202" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-dasharray="7 7" marker-end="url(#head)"/>\n <rect x="300" y="306" width="360" height="48" rx="24" style="fill:var(--node-bg)"/>\n <rect x="300" y="306" width="360" height="48" rx="24" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="1.5"/>\n <text x="480" y="336" text-anchor="middle" font-size="16" fill="currentColor">You: <tspan font-style="italic">\u201Cmake the chart a donut\u201D</tspan></text>\n <text x="480" y="22" text-anchor="middle" font-size="13" font-weight="600" letter-spacing="2" style="fill:var(--accent)">EACH ROUND TRIP TAKES SECONDS</text>\n</svg>\n```\n\nAsk your AI for a change, and see it on the slide you\'re on in seconds.\n\n### Real diagrams and charts, as text\n\nAI already writes **Graphviz**, **D2**, **ECharts** and **SVG** well, so they arrive in the same reply as the words, drawn in your deck\'s colours for dark and light, and changed by asking. The diagram before this slide is one: SVG inside the markdown. Headings, lists, tables, code, steps, images and YouTube links too: [see them all in the showcase \u2192](/showcase)\n\n### Fewer tokens, nothing to fix\n\nThe AI writes only content: headings, text and a few comments. Slidetake does the rest: card sizes, the map, the camera moves. No CSS or layout code to generate, and none to repair.\n\n### A few comments do the rest\n\nMarkdown has no word for "reveal one at a time" or "move the camera", so a handful of HTML comments say it. They stay invisible anywhere else markdown is read:\n\n```md\n<!-- steps --> \u2190 one press each\n<!-- camera: full, on --> \u2190 move the camera\n<!-- view: overview --> \u2190 the map first\n<!-- view: full --> \u2190 a big image\n```\n\n## \u{1F5FA}\uFE0F Present on a spatial canvas\n\n<!-- view: overview -->\n\n```dot\ndigraph {\n rankdir=LR nodesep=0.25 ranksep=0.7\n node [shape=box style=rounded margin="0.3,0.1" fontsize=16 fontname="IBM Plex Mono"]\n edge [arrowsize=0.7]\n talk [label="# Talk"] why [label="## Why"] how [label="## How"]\n demo [label="## Demo"] detail [label="### Detail"]\n talk -> {why how demo}\n why -> detail\n}\n```\n\nYour headings are the hierarchy: `#` is the first card, `##` branches from it, `###` goes a level deeper. Slidetake lays it out as a map you move through: \u2192 walks the path, and **O** zooms out to the whole talk, as this slide just did. The diagram is Graphviz, written as text in the deck.\n\n### The camera is part of the deck\n\n<!-- camera: on, full, on -->\n\nA comment in a slide moves you: corner, full screen, beside the words, or a split screen. Turn on **Camera** and watch this slide do it.\n\n### Your colours\n\nOne line, `accent: "#3b82f6"`, gives a deck its own colour, shaded for dark and light. On your website, decks wear your site\'s palette.\n\n`brand:` and `logo:` put your name and logo in the corner of every slide, so every frame of the video carries them.\n\n## \u{1F534} Record slide by slide\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 190" font-family="IBM Plex Sans, system-ui, sans-serif">\n <!-- easy mode -->\n <rect x="14" y="10" width="452" height="170" rx="18" style="fill:var(--accent);fill-opacity:.1;stroke:var(--accent)" stroke-width="2"/>\n <rect x="38" y="52" width="92" height="68" rx="9" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M38 70 H130" style="stroke:var(--accent)" stroke-width="2.5"/>\n <circle cx="48" cy="61" r="2.2" style="fill:var(--accent)"/><circle cx="57" cy="61" r="2.2" style="fill:var(--accent)"/>\n <circle cx="84" cy="95" r="10" fill="#ef4444"/>\n <text x="156" y="58" font-size="21" font-weight="700" style="fill:var(--accent)">Easy mode</text>\n <text x="156" y="88" font-size="15" fill="currentColor">Chrome or Edge, nothing to install</text>\n <text x="156" y="114" font-size="15" fill="currentColor">The deck records itself: slides and</text>\n <text x="156" y="136" font-size="15" fill="currentColor">camera in one frame: 16:9, or 9:16</text>\n\n <!-- pro mode -->\n <rect x="494" y="10" width="452" height="170" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.5" stroke-width="1.5"/>\n <circle cx="564" cy="86" r="36" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <circle cx="564" cy="86" r="10" fill="#ef4444"/>\n <text x="626" y="58" font-size="21" font-weight="700" style="fill:var(--accent)">Pro mode</text>\n <text x="626" y="88" font-size="15" fill="currentColor">OBS Studio, from any browser</text>\n <text x="626" y="114" font-size="15" fill="currentColor">The deck starts and stops it, and</text>\n <text x="626" y="136" font-size="15" fill="currentColor">drives every slide: you only talk</text>\n</svg>\n```\n\nPress **<span class="st-rec">\u25CF Record</span>** (R). **Every slide is a take:** stumbled? Press \u2190 and say it again. Every attempt is kept, and recording carries on.\n\n### Shorts and Reels too\n\n`format: portrait` makes the deck a 9:16 column and its video 1080\xD71920, recorded the same way, slide by slide, with the words above or below you. **New \u2192 Short** starts one.\n\n## \u2702\uFE0F Edit by picking the best take\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 360" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n <text x="480" y="20" text-anchor="middle" font-size="13" font-weight="600" letter-spacing="2" style="fill:var(--accent)">EVERY ATTEMPT IS KEPT \xB7 PICK ONE PER SLIDE</text>\n\n <!-- slide headers -->\n <g font-size="15" font-weight="600" text-anchor="middle" fill="currentColor">\n <text x="140" y="56">Slide 1</text><text x="380" y="56">Slide 2</text><text x="620" y="56">Slide 3</text><text x="860" y="56">Slide 4</text>\n </g>\n\n <!-- takes: picked ones in the accent, the rest faded -->\n <g font-size="14" text-anchor="middle">\n <rect x="55" y="72" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="55" y="72" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="140" y="97" fill="currentColor">Take 1 \u2713</text>\n\n <rect x="295" y="72" width="170" height="40" rx="10" fill="none" style="stroke:var(--text-muted);stroke-opacity:.5" stroke-width="1.5" stroke-dasharray="5 4"/>\n <text x="380" y="97" style="fill:var(--text-muted)">Take 1</text>\n <text x="380" y="134" font-size="13" font-weight="600" style="fill:var(--accent)">\u2190 again</text>\n <rect x="295" y="146" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="295" y="146" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="380" y="171" fill="currentColor">Take 2 \u2713</text>\n\n <rect x="535" y="72" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="535" y="72" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="620" y="97" fill="currentColor">Take 1 \u2713</text>\n\n <rect x="775" y="72" width="170" height="40" rx="10" fill="none" style="stroke:var(--text-muted);stroke-opacity:.5" stroke-width="1.5" stroke-dasharray="5 4"/>\n <text x="860" y="97" style="fill:var(--text-muted)">Take 1</text>\n <text x="860" y="134" font-size="13" font-weight="600" style="fill:var(--accent)">\u2190 again</text>\n <rect x="775" y="146" width="170" height="40" rx="10" fill="none" style="stroke:var(--text-muted);stroke-opacity:.5" stroke-width="1.5" stroke-dasharray="5 4"/>\n <text x="860" y="171" style="fill:var(--text-muted)">Take 2</text>\n <text x="860" y="208" font-size="13" font-weight="600" style="fill:var(--accent)">\u2190 again</text>\n <rect x="775" y="220" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="775" y="220" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="860" y="245" fill="currentColor">Take 3 \u2713</text>\n </g>\n\n <!-- the picked takes, joined -->\n <g fill="none" style="stroke:var(--accent)" stroke-width="2" marker-end="url(#head)">\n <path d="M140 114 V292"/><path d="M380 188 V292"/><path d="M620 114 V292"/><path d="M860 262 V292"/>\n </g>\n <rect x="20" y="298" width="920" height="44" rx="12" style="fill:var(--accent);fill-opacity:.18;stroke:var(--accent)" stroke-width="2"/>\n <g style="stroke:var(--accent)" stroke-width="2"><path d="M260 298 V342 M500 298 V342 M740 298 V342"/></g>\n <g font-size="14" fill="currentColor" font-family="IBM Plex Mono, monospace">\n <text x="36" y="325">0:00 Slide 1</text><text x="276" y="325">Slide 2</text><text x="516" y="325">Slide 3</text><text x="756" y="325">Slide 4</text>\n </g>\n <text x="924" y="325" text-anchor="end" font-size="13" font-weight="600" style="fill:var(--accent)">one video</text>\n</svg>\n```\n\n**Pick the best of each** in \u25CF Studio: one video in seconds, at YouTube\'s loudness, with **chapters** to paste. With OBS, an **[ffmpeg](https://ffmpeg.org)** cut.\n\n## \u{1F310} Run it anywhere\n\nThree places, one deck format: a markdown file.\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 320" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n <filter id="glow" x="-30%" y="-30%" width="160%" height="160%"><feGaussianBlur stdDeviation="9"/></filter>\n </defs>\n\n <!-- one file -->\n <rect x="40" y="104" width="230" height="112" rx="18" style="fill:var(--accent)" filter="url(#glow)" opacity=".1"/>\n <rect x="40" y="110" width="230" height="100" rx="18" style="fill:var(--node-bg)"/>\n <rect x="40" y="110" width="230" height="100" rx="18" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M74 136 h22 l10 10 v30 h-32z M96 136 v10 h10" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linejoin="round"/>\n <text x="122" y="160" font-size="21" font-weight="600" font-family="IBM Plex Mono, monospace" fill="currentColor">deck.md</text>\n <text x="122" y="184" font-size="13" style="fill:var(--text-muted)">one markdown file</text>\n\n <g fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)">\n <path d="M272 150 C380 150 400 62 498 62"/>\n <path d="M272 160 H498"/>\n <path d="M272 170 C380 170 400 258 498 258"/>\n </g>\n\n <g>\n <rect x="504" y="20" width="430" height="84" rx="16" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="526" y="54" font-size="18" font-weight="600" fill="currentColor">slidetake.com</text>\n <text x="526" y="80" font-size="13" style="fill:var(--text-muted)">write, open from a link, record in \u25CF Studio, share</text>\n <rect x="504" y="118" width="430" height="84" rx="16" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="526" y="152" font-size="18" font-weight="600" fill="currentColor">Your computer \xB7 <tspan font-family="IBM Plex Mono, monospace" font-size="16">npx slidetake</tspan></text>\n <text x="526" y="178" font-size="13" style="fill:var(--text-muted)">the AI loop, local images, edits saved to the file</text>\n <rect x="504" y="216" width="430" height="84" rx="16" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="526" y="250" font-size="18" font-weight="600" fill="currentColor">Your website \xB7 <tspan font-family="IBM Plex Mono, monospace" font-size="16">slidetake.js</tspan></text>\n <text x="526" y="276" font-size="13" style="fill:var(--text-muted)">a viewer for your readers, in your site\'s colours</text>\n </g>\n</svg>\n```\n\n### slidetake.com: write, present, record, edit and share\n\nWrite a deck in the **\u270E Editor**, or view one straight from a link: a GitHub file, a gist or any markdown URL. Record it and cut the video in **\u25CF Studio**, in the same tab. **Share** a link with the deck inside it. Nothing to install.\n\n### Your computer: all that, plus AI\n\nThe same app on your own files, offline:\n\n```sh\nnpx slidetake deck.md\n```\n\nImages next to the markdown load as they are. Save in any editor and the deck reloads where you are; type in the browser and it saves to the file. That\'s [the AI loop](#ai): an agent writes `deck.md` while you watch it take shape.\n\n### Your website: a viewer for your readers\n\n`slidetake.js` puts decks inside your own pages, in your site\'s colours: a clean viewer, nothing else to set up. Record the same markdown here or with `npx slidetake`.\n\n## <span class="st-heart" aria-hidden="true"></span> Open source\n\nOpen source, Apache 2.0: [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake). Nothing to sign up for, and your decks stay yours: [Privacy](/privacy).\n\nNext, every feature and what it saves you: **[Features \u2192](/features)**\n';
1510
+ var sample_default = '---\ntitle: Slidetake \u2014 write in markdown with AI, record without timeline editing\ndescription: "Write a deck in markdown, with AI, present it on a spatial canvas, and record it slide by slide: retake any slide, pick the best take, download the video. Open source."\nbrand: slidetake\npip: bottom-right\n---\n\n<!-- camera: on, full, on -->\n\n# ![](/favicon.svg) Slide<span class="st-take">take</span>\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 290" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n\n <!-- four panels -->\n <g style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5">\n <rect x="14" y="10" width="212" height="270" rx="18"/>\n <rect x="254" y="10" width="212" height="270" rx="18"/>\n <rect x="494" y="10" width="212" height="270" rx="18"/>\n <rect x="734" y="10" width="212" height="270" rx="18"/>\n </g>\n <g fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)">\n <path d="M228 110 H251"/><path d="M468 110 H491"/><path d="M708 110 H731"/>\n </g>\n\n <!-- write: a markdown file, and the AI writing it -->\n <rect x="66" y="36" width="104" height="140" rx="11" style="fill:var(--node-bg);stroke:var(--accent)" stroke-width="2"/>\n <g font-family="IBM Plex Mono, monospace" font-size="13" font-weight="600" style="fill:var(--accent)">\n <text x="78" y="62">#</text><text x="78" y="112">##</text>\n </g>\n <g style="fill:var(--text-muted)" opacity=".55">\n <rect x="92" y="53" width="52" height="9" rx="4.5"/>\n <rect x="78" y="74" width="80" height="6" rx="3"/><rect x="78" y="86" width="60" height="6" rx="3"/>\n <rect x="100" y="103" width="46" height="9" rx="4.5"/>\n <rect x="78" y="124" width="80" height="6" rx="3"/><rect x="78" y="136" width="68" height="6" rx="3"/><rect x="78" y="148" width="50" height="6" rx="3"/>\n </g>\n <path d="M176 28 l6 14 14 6 -14 6 -6 14 -6 -14 -14 -6 14 -6z" style="fill:var(--accent)"/>\n\n <!-- present: cards on a path, the one on screen framed -->\n <g fill="none" style="stroke:var(--accent);stroke-opacity:.6" stroke-width="2">\n <path d="M310 58 H320 M358 58 H368 M387 71 V92 M406 105 H416"/>\n </g>\n <g style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent);stroke-opacity:.7" stroke-width="1.5">\n <rect x="272" y="45" width="38" height="26" rx="6"/><rect x="320" y="45" width="38" height="26" rx="6"/>\n <rect x="368" y="45" width="38" height="26" rx="6"/><rect x="368" y="92" width="38" height="26" rx="6"/>\n <rect x="416" y="92" width="38" height="26" rx="6"/>\n </g>\n <rect x="358" y="82" width="58" height="46" rx="9" fill="none" style="stroke:var(--accent)" stroke-width="3"/>\n <rect x="368" y="92" width="38" height="26" rx="6" style="fill:var(--accent);fill-opacity:.45"/>\n <g style="fill:var(--text-muted)" font-size="12">\n <text x="272" y="156">\u2192 walks the path</text><text x="272" y="174">O zooms out to all</text>\n </g>\n\n <!-- record: the red dot, in either mode -->\n <circle cx="600" cy="62" r="24" fill="none" stroke="#ef4444" stroke-opacity=".45" stroke-width="2"/>\n <circle cx="600" cy="62" r="14" fill="#ef4444"/>\n <g font-size="13" text-anchor="middle">\n <rect x="522" y="102" width="156" height="30" rx="15" style="fill:var(--node-bg)"/>\n <rect x="522" y="102" width="156" height="30" rx="15" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="1.5"/>\n <text x="600" y="122" fill="currentColor"><tspan font-weight="600">Easy</tspan> \xB7 Chrome</text>\n <rect x="522" y="142" width="156" height="30" rx="15" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.6" stroke-width="1.5"/>\n <text x="600" y="162" fill="currentColor"><tspan font-weight="600">Pro</tspan> \xB7 OBS</text>\n </g>\n\n <!-- edit: pick a take, get the video -->\n <g font-size="12" text-anchor="middle">\n <rect x="752" y="36" width="96" height="27" rx="8" fill="none" style="stroke:var(--text-muted);stroke-opacity:.6" stroke-width="1.5" stroke-dasharray="4 4"/>\n <text x="800" y="54" style="fill:var(--text-muted)">Take 1</text>\n <rect x="752" y="72" width="96" height="27" rx="8" style="fill:var(--node-bg)"/>\n <rect x="752" y="72" width="96" height="27" rx="8" style="fill:var(--accent);fill-opacity:.15;stroke:var(--accent)" stroke-width="2"/>\n <text x="800" y="90" fill="currentColor">Take 2 \u2713</text>\n </g>\n <path d="M850 86 C878 86 884 96 884 108" fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)"/>\n <rect x="836" y="112" width="92" height="60" rx="10" style="fill:var(--node-bg);stroke:var(--accent)" stroke-width="2"/>\n <path d="M874 130 l16 12 -16 12z" style="fill:var(--accent)"/>\n\n <!-- the steps -->\n <g text-anchor="middle" fill="currentColor">\n <text x="120" y="222" font-size="20" font-weight="700">Write</text>\n <text x="120" y="248" font-size="14" style="fill:var(--text-muted)">in markdown, with AI</text>\n <text x="360" y="222" font-size="20" font-weight="700">Present</text>\n <text x="360" y="248" font-size="14" style="fill:var(--text-muted)">on a spatial canvas</text>\n <text x="600" y="222" font-size="20" font-weight="700">Record</text>\n <text x="600" y="248" font-size="14" style="fill:var(--text-muted)">slide by slide, retake any</text>\n <text x="840" y="222" font-size="20" font-weight="700">Edit</text>\n <text x="840" y="248" font-size="14" style="fill:var(--text-muted)">just pick the best take</text>\n </g>\n</svg>\n```\n\n<p style="text-align:center">For developers and technical educators who explain things on video. You\'re inside a Slidetake deck right now.</p>\n\n### \u23F1\uFE0F Hours, not days\n\nA video that takes two or three days to script, record and edit takes a couple of hours: an AI writes the deck, you record it slide by slide, and pick the best take of each in Studio. What comes out is ready to upload.\n\n## \u270D\uFE0F Write in markdown, with AI {#ai}\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 380" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <filter id="glow" x="-30%" y="-30%" width="160%" height="160%">\n <feGaussianBlur stdDeviation="9"/>\n </filter>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n\n <!-- the four steps -->\n <g>\n <rect x="16" y="40" width="196" height="150" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <path d="M114 70 l7 17 17 7 -17 7 -7 17 -7 -17 -17 -7 17 -7z" style="fill:var(--accent)"/>\n <text x="114" y="150" text-anchor="middle" font-size="19" font-weight="600" fill="currentColor">Claude Code</text>\n <text x="114" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">or any AI agent</text>\n </g>\n <g>\n <rect x="262" y="34" width="196" height="162" rx="18" style="fill:var(--accent)" filter="url(#glow)" opacity=".1"/>\n <rect x="262" y="40" width="196" height="150" rx="18" style="fill:var(--node-bg)"/>\n <rect x="262" y="40" width="196" height="150" rx="18" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M343 66 h26 l12 12 v34 h-38z" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linejoin="round"/>\n <path d="M369 66 v12 h12" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linejoin="round"/>\n <text x="360" y="150" text-anchor="middle" font-size="19" font-weight="600" font-family="IBM Plex Mono, monospace" fill="currentColor">deck.md</text>\n <text x="360" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">text, dot, d2, echarts, svg</text>\n </g>\n <g>\n <rect x="508" y="40" width="196" height="150" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <rect x="577" y="68" width="58" height="44" rx="7" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M588 82 l9 8 -9 8 M601 99 h12" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>\n <text x="606" y="150" text-anchor="middle" font-size="19" font-weight="600" font-family="IBM Plex Mono, monospace" fill="currentColor">npx slidetake</text>\n <text x="606" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">serves it, watches the file</text>\n </g>\n <g>\n <rect x="754" y="40" width="190" height="150" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <rect x="818" y="66" width="62" height="46" rx="7" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M818 78 h62" style="stroke:var(--accent)" stroke-width="2.5"/>\n <circle cx="826" cy="72" r="1.8" style="fill:var(--accent)"/><circle cx="833" cy="72" r="1.8" style="fill:var(--accent)"/>\n <rect x="828" y="86" width="22" height="16" rx="3" style="fill:var(--accent);fill-opacity:.55"/>\n <text x="849" y="150" text-anchor="middle" font-size="19" font-weight="600" fill="currentColor">Chrome</text>\n <text x="849" y="173" text-anchor="middle" font-size="13" style="fill:var(--text-muted)">redraws the slide you\'re on</text>\n </g>\n\n <!-- forward: write, save, reload -->\n <path d="M214 115 H256" fill="none" style="stroke:var(--accent)" stroke-width="3" marker-end="url(#head)"/>\n <path d="M460 115 H502" fill="none" style="stroke:var(--accent)" stroke-width="3" marker-end="url(#head)"/>\n <path d="M706 115 H748" fill="none" style="stroke:var(--accent)" stroke-width="3" marker-end="url(#head)"/>\n <text x="237" y="104" text-anchor="middle" font-size="12" style="fill:var(--text-muted)">writes</text>\n <text x="483" y="104" text-anchor="middle" font-size="12" style="fill:var(--text-muted)">saved</text>\n <text x="729" y="104" text-anchor="middle" font-size="12" style="fill:var(--text-muted)">reloads</text>\n\n <!-- back: you ask for a change -->\n <path d="M849 196 C849 300 780 330 480 330 C180 330 114 300 114 202" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-dasharray="7 7" marker-end="url(#head)"/>\n <rect x="300" y="306" width="360" height="48" rx="24" style="fill:var(--node-bg)"/>\n <rect x="300" y="306" width="360" height="48" rx="24" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="1.5"/>\n <text x="480" y="336" text-anchor="middle" font-size="16" fill="currentColor">You: <tspan font-style="italic">\u201Cmake the chart a donut\u201D</tspan></text>\n <text x="480" y="22" text-anchor="middle" font-size="13" font-weight="600" letter-spacing="2" style="fill:var(--accent)">EACH ROUND TRIP TAKES SECONDS</text>\n</svg>\n```\n\nAsk your AI for a change, and see it on the slide you\'re on in seconds.\n\n### Real diagrams and charts, as text\n\nAI already writes **Graphviz**, **D2**, **ECharts** and **SVG** well, so they arrive in the same reply as the words, drawn in your deck\'s colours for dark and light, and changed by asking. The diagram before this slide is one: SVG inside the markdown. Headings, lists, tables, code, steps, images and YouTube links too: [see them all in the showcase \u2192](/showcase)\n\n### Fewer tokens, nothing to fix\n\nThe AI writes only content: headings, text and a few comments. Slidetake does the rest: card sizes, the map, the camera moves. No CSS or layout code to generate, and none to repair.\n\n### A few comments do the rest\n\nMarkdown has no word for "reveal one at a time" or "move the camera", so a handful of HTML comments say it. They stay invisible anywhere else markdown is read:\n\n```md\n<!-- steps --> \u2190 one press each\n<!-- camera: full, on --> \u2190 move the camera\n<!-- view: overview --> \u2190 the map first\n<!-- view: full --> \u2190 a big image\n```\n\n## \u{1F5FA}\uFE0F Present on a spatial canvas\n\n<!-- view: overview -->\n\n```dot\ndigraph {\n rankdir=LR nodesep=0.25 ranksep=0.7\n node [shape=box style=rounded margin="0.3,0.1" fontsize=16 fontname="IBM Plex Mono"]\n edge [arrowsize=0.7]\n talk [label="# Talk"] why [label="## Why"] how [label="## How"]\n demo [label="## Demo"] detail [label="### Detail"]\n talk -> {why how demo}\n why -> detail\n}\n```\n\nYour headings are the hierarchy: `#` is the first card, `##` branches from it, `###` goes a level deeper. Slidetake lays it out as a map you move through: \u2192 walks the path, and **O** zooms out to the whole talk, as this slide just did. The diagram is Graphviz, written as text in the deck.\n\n### The camera is part of the deck\n\n<!-- camera: on, full, on -->\n\nA comment in a slide moves you: corner, full screen, beside the words, or a split screen. Turn on **Camera** and watch this slide do it.\n\n### Your colours\n\nOne line, `accent: "#3b82f6"`, gives a deck its own colour, shaded for dark and light. On your website, decks wear your site\'s palette.\n\n`brand:` and `logo:` put your name and logo in the corner of every slide, so every frame of the video carries them: one per theme if you like, and a slide can pick another with `<!-- logo: url -->`, or hide it with `<!-- logo: none -->`.\n\n## \u{1F534} Record slide by slide\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 190" font-family="IBM Plex Sans, system-ui, sans-serif">\n <!-- easy mode -->\n <rect x="14" y="10" width="452" height="170" rx="18" style="fill:var(--accent);fill-opacity:.1;stroke:var(--accent)" stroke-width="2"/>\n <rect x="38" y="52" width="92" height="68" rx="9" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M38 70 H130" style="stroke:var(--accent)" stroke-width="2.5"/>\n <circle cx="48" cy="61" r="2.2" style="fill:var(--accent)"/><circle cx="57" cy="61" r="2.2" style="fill:var(--accent)"/>\n <circle cx="84" cy="95" r="10" fill="#ef4444"/>\n <text x="156" y="58" font-size="21" font-weight="700" style="fill:var(--accent)">Easy mode</text>\n <text x="156" y="88" font-size="15" fill="currentColor">Chrome or Edge, nothing to install</text>\n <text x="156" y="114" font-size="15" fill="currentColor">The deck records itself: slides and</text>\n <text x="156" y="136" font-size="15" fill="currentColor">camera in one frame: 16:9, or 9:16</text>\n\n <!-- pro mode -->\n <rect x="494" y="10" width="452" height="170" rx="18" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.5" stroke-width="1.5"/>\n <circle cx="564" cy="86" r="36" fill="none" style="stroke:var(--accent)" stroke-width="2.5"/>\n <circle cx="564" cy="86" r="10" fill="#ef4444"/>\n <text x="626" y="58" font-size="21" font-weight="700" style="fill:var(--accent)">Pro mode</text>\n <text x="626" y="88" font-size="15" fill="currentColor">OBS Studio, from any browser</text>\n <text x="626" y="114" font-size="15" fill="currentColor">The deck starts and stops it, and</text>\n <text x="626" y="136" font-size="15" fill="currentColor">drives every slide: you only talk</text>\n</svg>\n```\n\nPress **<span class="st-rec">\u25CF Record</span>** (R). **Every slide is a take:** stumbled? Press \u2190 and say it again. Every attempt is kept, and recording carries on.\n\n### Shorts and Reels too\n\n`format: portrait` makes the deck a 9:16 column and its video 1080\xD71920, recorded the same way, slide by slide, with the words above or below you. **New \u2192 Short** starts one.\n\n## \u2702\uFE0F Edit by picking the best take\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 360" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n <text x="480" y="20" text-anchor="middle" font-size="13" font-weight="600" letter-spacing="2" style="fill:var(--accent)">EVERY ATTEMPT IS KEPT \xB7 PICK ONE PER SLIDE</text>\n\n <!-- slide headers -->\n <g font-size="15" font-weight="600" text-anchor="middle" fill="currentColor">\n <text x="140" y="56">Slide 1</text><text x="380" y="56">Slide 2</text><text x="620" y="56">Slide 3</text><text x="860" y="56">Slide 4</text>\n </g>\n\n <!-- takes: picked ones in the accent, the rest faded -->\n <g font-size="14" text-anchor="middle">\n <rect x="55" y="72" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="55" y="72" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="140" y="97" fill="currentColor">Take 1 \u2713</text>\n\n <rect x="295" y="72" width="170" height="40" rx="10" fill="none" style="stroke:var(--text-muted);stroke-opacity:.5" stroke-width="1.5" stroke-dasharray="5 4"/>\n <text x="380" y="97" style="fill:var(--text-muted)">Take 1</text>\n <text x="380" y="134" font-size="13" font-weight="600" style="fill:var(--accent)">\u2190 again</text>\n <rect x="295" y="146" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="295" y="146" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="380" y="171" fill="currentColor">Take 2 \u2713</text>\n\n <rect x="535" y="72" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="535" y="72" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="620" y="97" fill="currentColor">Take 1 \u2713</text>\n\n <rect x="775" y="72" width="170" height="40" rx="10" fill="none" style="stroke:var(--text-muted);stroke-opacity:.5" stroke-width="1.5" stroke-dasharray="5 4"/>\n <text x="860" y="97" style="fill:var(--text-muted)">Take 1</text>\n <text x="860" y="134" font-size="13" font-weight="600" style="fill:var(--accent)">\u2190 again</text>\n <rect x="775" y="146" width="170" height="40" rx="10" fill="none" style="stroke:var(--text-muted);stroke-opacity:.5" stroke-width="1.5" stroke-dasharray="5 4"/>\n <text x="860" y="171" style="fill:var(--text-muted)">Take 2</text>\n <text x="860" y="208" font-size="13" font-weight="600" style="fill:var(--accent)">\u2190 again</text>\n <rect x="775" y="220" width="170" height="40" rx="10" style="fill:var(--node-bg)"/>\n <rect x="775" y="220" width="170" height="40" rx="10" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="860" y="245" fill="currentColor">Take 3 \u2713</text>\n </g>\n\n <!-- the picked takes, joined -->\n <g fill="none" style="stroke:var(--accent)" stroke-width="2" marker-end="url(#head)">\n <path d="M140 114 V292"/><path d="M380 188 V292"/><path d="M620 114 V292"/><path d="M860 262 V292"/>\n </g>\n <rect x="20" y="298" width="920" height="44" rx="12" style="fill:var(--accent);fill-opacity:.18;stroke:var(--accent)" stroke-width="2"/>\n <g style="stroke:var(--accent)" stroke-width="2"><path d="M260 298 V342 M500 298 V342 M740 298 V342"/></g>\n <g font-size="14" fill="currentColor" font-family="IBM Plex Mono, monospace">\n <text x="36" y="325">0:00 Slide 1</text><text x="276" y="325">Slide 2</text><text x="516" y="325">Slide 3</text><text x="756" y="325">Slide 4</text>\n </g>\n <text x="924" y="325" text-anchor="end" font-size="13" font-weight="600" style="fill:var(--accent)">one video</text>\n</svg>\n```\n\n**Pick the best of each** in \u25CF Studio: one video in seconds, at YouTube\'s loudness, with **chapters** to paste. With OBS, an **[ffmpeg](https://ffmpeg.org)** cut.\n\n## \u{1F310} Run it anywhere\n\nThree places, one deck format: a markdown file.\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 320" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n <filter id="glow" x="-30%" y="-30%" width="160%" height="160%"><feGaussianBlur stdDeviation="9"/></filter>\n </defs>\n\n <!-- one file -->\n <rect x="40" y="104" width="230" height="112" rx="18" style="fill:var(--accent)" filter="url(#glow)" opacity=".1"/>\n <rect x="40" y="110" width="230" height="100" rx="18" style="fill:var(--node-bg)"/>\n <rect x="40" y="110" width="230" height="100" rx="18" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2.5"/>\n <path d="M74 136 h22 l10 10 v30 h-32z M96 136 v10 h10" fill="none" style="stroke:var(--accent)" stroke-width="2.5" stroke-linejoin="round"/>\n <text x="122" y="160" font-size="21" font-weight="600" font-family="IBM Plex Mono, monospace" fill="currentColor">deck.md</text>\n <text x="122" y="184" font-size="13" style="fill:var(--text-muted)">one markdown file</text>\n\n <g fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)">\n <path d="M272 150 C380 150 400 62 498 62"/>\n <path d="M272 160 H498"/>\n <path d="M272 170 C380 170 400 258 498 258"/>\n </g>\n\n <g>\n <rect x="504" y="20" width="430" height="84" rx="16" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="526" y="54" font-size="18" font-weight="600" fill="currentColor">slidetake.com</text>\n <text x="526" y="80" font-size="13" style="fill:var(--text-muted)">write, open from a link, record in \u25CF Studio, share</text>\n <rect x="504" y="118" width="430" height="84" rx="16" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="526" y="152" font-size="18" font-weight="600" fill="currentColor">Your computer \xB7 <tspan font-family="IBM Plex Mono, monospace" font-size="16">npx slidetake</tspan></text>\n <text x="526" y="178" font-size="13" style="fill:var(--text-muted)">the AI loop, local images, edits saved to the file</text>\n <rect x="504" y="216" width="430" height="84" rx="16" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="526" y="250" font-size="18" font-weight="600" fill="currentColor">Your website \xB7 <tspan font-family="IBM Plex Mono, monospace" font-size="16">slidetake.js</tspan></text>\n <text x="526" y="276" font-size="13" style="fill:var(--text-muted)">a viewer for your readers, in your site\'s colours</text>\n </g>\n</svg>\n```\n\n### slidetake.com: write, present, record, edit and share\n\nWrite a deck in the **\u270E Editor**, or view one straight from a link: a GitHub file, a gist or any markdown URL. Record it and cut the video in **\u25CF Studio**, in the same tab. **Share** a link with the deck inside it. Nothing to install.\n\n### Your computer: all that, plus AI\n\nThe same app on your own files, offline:\n\n```sh\nnpx slidetake deck.md\n```\n\nImages next to the markdown load as they are. Save in any editor and the deck reloads where you are; type in the browser and it saves to the file. That\'s [the AI loop](#ai): an agent writes `deck.md` while you watch it take shape.\n\n### Your website: a viewer for your readers\n\n`slidetake.js` puts decks inside your own pages, in your site\'s colours: a clean viewer, nothing else to set up. Record the same markdown here or with `npx slidetake`.\n\n## <span class="st-heart" aria-hidden="true"></span> Open source\n\nOpen source, Apache 2.0: [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake). Nothing to sign up for, and your decks stay yours: [Privacy](/privacy).\n\nNext, every feature and what it saves you: **[Features \u2192](/features)**\n';
1509
1511
 
1510
1512
  // src/docs.md
1511
- var docs_default = '---\ntitle: Slidetake Docs\ndescription: "How to use Slidetake, step by step: get started, write a deck, present it, record a video in the browser or with OBS, and share it."\nbrand: slidetake\npip: none\n---\n\n# ![](/favicon.svg) Slide<span class="st-take">take</span> Docs\n\nEverything in order: **get started \u2192 write \u2192 present \u2192 record \u2192 edit \u2192 share**. Press \u2192 to walk it, \u2193 \u2191 to go into a step and back out, **O** for the map.\n\n## 1\uFE0F\u20E3 Get started\n\nThree places to use Slidetake, one deck format for all of them: a markdown file. And any AI can write the deck.\n\n| Where | Best for |\n|---|---|\n| **slidetake.com** | writing in the Editor, viewing any deck from a link, sharing |\n| **Your computer** | the same on your own files and images, offline, with an AI agent writing alongside |\n| **Your website** | decks your readers view |\n\n### On slidetake.com\n\nOpen a deck straight from a link: a GitHub file, a gist or any markdown URL. Or press **\u270E Editor** and type: the first keystroke makes it [your copy](#your-copy), kept in this browser.\n\n| Link | Opens |\n|---|---|\n| `/gh/owner/repo/path/deck.md` | a GitHub file, default branch |\n| `/gh/owner/repo@branch/deck.md` | another branch or tag |\n| `/gist/<id>` | a gist\'s first markdown file |\n| `/?src=https://\u2026/deck.md` | anything else |\n| `/new` | a template: blank, talk, recording or short (9:16) |\n\n### On your computer\n\nKeep the deck and its images together in a folder, and run one command there:\n\n```sh\nnpx slidetake deck.md\n```\n\nIt opens on `http://localhost:4300` with the files next to the deck served beside it, so `![](diagram.png)` just works. Save the file in any editor and the deck reloads where you are; type in the browser\'s editor and it saves to the file. Nothing leaves your machine. Needs Node 20 or later.\n\n`npx slidetake` in a folder opens its `index.md`, `deck.md`, `slides.md` or `README.md`. `--open` opens the browser; `--port 5000` picks the port.\n\n### On your website\n\n`slidetake.js` turns a deck on any page into a Slidetake deck. Describe the deck, then load the script:\n\n```html\n<script>\nwindow.SLIDETAKE = {\n markdown: "# My deck\\n\\n## A section",\n settings: {title: "My deck"},\n base: location.href, // for images\n trail: [{label: "My site", url: "/"}],\n themeKey: "my-theme", // your light/dark key\n colors: {accent: "#2563eb"} // your colours\n};\n<\/script>\n<script src="https://cdn.jsdelivr.net/npm/slidetake/dist/slidetake.js"><\/script>\n```\n\nA viewer for your readers. To record, open the deck\'s markdown here or with `npx slidetake`, or add `recording: true` on a page only you see, such as your site\'s local preview. The hugo-continuum theme writes this for pages with `engine: slidetake`, with recording under `hugo server`.\n\n### With AI\n\nAny AI can write a deck: point it at [slidetake.com/llms.txt](/llms.txt) and say what the talk is about.\n\n- **An agent** (Claude Code and the like): *"Write a Slidetake deck about X in talk/deck.md, following slidetake.com/llms.txt"*, then `npx slidetake talk/deck.md`. The deck reloads as it edits.\n- **A chat**: ask for one markdown block, then paste it into **\u270E Editor** here.\n- **Images**: beside the file for an agent; full URLs in a chat.\n\n### A prompt to copy\n\nPaste this into any AI and change the first line:\n\n```text\nWrite a Slidetake deck about <topic>, a 10-minute talk.\nFollow https://slidetake.com/llms.txt.\nA # title card, then 4\u20136 ## sections of 1\u20133 ### cards.\n<!-- steps --> before lists; a ```dot or ```d2 diagram\nwhere a picture helps. Reply with one markdown block.\n```\n\n## 2\uFE0F\u20E3 Write a deck\n\nA deck is an ordinary markdown file. **Every heading becomes a card**, and a heading branches off the nearest shallower heading above it.\n\n```md\n# Product \u2190 the first card\nIntro text.\n\n## Pricing \u2190 from Product\n### Enterprise \u2190 from Pricing\n## Roadmap {#plan} \u2190 from Product, id "plan"\n\nSee the [roadmap](#plan).\n```\n\n### Cards\n\n- Text before the first heading becomes a card of its own.\n- Headings inside fenced code blocks are ignored.\n- A card\'s id is its heading slugified (`## Moving around` \u2192 `moving-around`), or set one with `{#id}` at the end of the heading.\n- A link to `#id` flies to that card.\n- Cards widen for wide tables, columns, diagrams and embeds; anything wider still is scaled to fit.\n\n### What a card can hold\n\nPlain markdown, and the layout follows from what\'s on the card. [See every one in the showcase \u2192](/showcase)\n\n| Write | Get |\n|---|---|\n| `<!-- steps -->` | what follows, one press each, to the end of the card or a `<!-- steps: off -->` |\n| ` ```dot `, ` ```d2 ` | a Graphviz or D2 diagram, in the deck\'s colours |\n| ` ```echarts ` with JSON options | a chart, in the deck\'s colours |\n| ` ```svg ` | an SVG drawing: `currentColor` and `var(--text)`, `var(--accent)` follow dark and light |\n| a YouTube link alone on a line | the video: the next press plays it |\n| `<!-- view: full -->` | a frame for a big image or a chart: 16:9, or 9:16 in a portrait deck |\n\nThe first and last cards animate in on their own. Charts grow in when you arrive going forward; going back, they\'re already drawn, so a take that steps back stays clean.\n\n### Images\n\nThe layout follows from where the images are. The alt text is the caption.\n\n| Write | Get |\n|---|---|\n| an image alone | an image card, laid out by its shape: phone, landscape or 16:9 |\n| an image and text | a split card, the image on the side written first |\n| a list of images, diagrams or charts | a gallery; after `<!-- steps -->`, a carousel |\n| images in one paragraph | a grid, up to four a row |\n| `![](drawing.svg)` | an SVG image, as drawn |\n\n### Deck settings\n\nAn optional block at the top of the file:\n\n```yaml\n---\ntitle: My talk \u2190 page and video title\nduration: 10m \u2190 for the timer\naccent: "#3b82f6" \u2190 the deck\'s colour\nmode: light \u2190 open in light mode\nformat: portrait \u2190 a 9:16 deck, for Shorts and Reels\nbrand: example.com \u2190 top-right corner text\nbrand_style: chip \u2190 the brand as a pill\nlogo: https://\u2026/l.png \u2190 image beside it\nbase: https://\u2026/deck/ \u2190 where images live\nsite: https://\u2026/ \u2190 where /images live\n---\n```\n\n`accent` is one colour; Slidetake makes it bright for dark mode and deep enough to read on white for light mode, and uses it for text accents, lines, charts and diagrams. Camera and recording settings are in [step 4](#4-record-a-video).\n\n### Decks from elsewhere\n\n**reveal.js** decks open as they are: `---` starts a slide and `--` a vertical one beneath it. Fragments (`fade-up`, `grow`, \u2026), `r-stack`, `<!-- .element: \u2026 -->`, `<section>` slides, `data-autoslide`, `data-gsap` entrances and `title-scramble` all work.\n\n**Older `+++` decks**, with `id`, `parent`, `x`, `y` frontmatter, still load.\n\n## 3\uFE0F\u20E3 Present\n\nClick a card to fly to it. Drag to pan; scroll or pinch to zoom. On a touch screen, the bottom bar adds \u2190 \u2192 buttons.\n\n| Key | Does |\n|---|---|\n| \u2192 \u2190 Space | next / previous step, in document order (PgDn and PgUp too: what clickers send) |\n| Home End | first / last slide |\n| \u2193 \u2191 | first child / parent |\n| O | the whole map; **O** again or Esc goes back |\n| F | fullscreen; **F** again or Esc leaves |\n| K, / or ? | these keys; again closes them |\n| 1 2 3 4 | focus, path, radial, tree |\n| + \u2212 | bigger / smaller slides (remembered; = works for +) |\n| E \xB7 L | editor \xB7 light / dark |\n| C \xB7 V | camera \xB7 camera layouts |\n| R \xB7 S | record \xB7 Studio |\n| P \xB7 D | in Studio: preview \xB7 download |\n\n### Layouts\n\n**Focus** doesn\'t travel at all: the next slide fades in where the last one was.\n\n**Path**, the default, is made for presenting and video: a staircase in presenting order. Each section is a row, and the next one starts just below where the last ended, so every move is a short step right or down.\n\n**Radial** rings out from the first card, and **tree** is a top-down chart.\n\nThe layout you pick is remembered in this browser, for every deck.\n\n### On screen\n\nText keeps one size within a section and only changes when the section does; charts and diagrams are fitted on their own.\n\n`<!-- view: overview -->` on a slide pulls back to the whole map for a beat before flying in: a good start to a chapter.\n\n### Progress and timer\n\nIn fullscreen the cursor and controls hide after two seconds without the mouse moving, and a thin bar along the bottom fills with every press.\n\nWith `duration: 10m` (or `90s`, `1h`, `12:30`), a lighter layer of the same colour grows behind it with the clock: if it shows past the solid fill, you\'re behind; if it reaches the end, the bar pulses. The timer is for you, so recordings show progress only, unless the deck says `timer: always`. `progress: off` hides the bar.\n\n## 4\uFE0F\u20E3 Record a video\n\nTwo modes, both slide by slide, so there\'s no timeline to edit afterwards. **\u25CF Record** in the bottom bar (or **R**) starts a take: the first time it opens Setup, then it records the slides without a take. **\u25CF Studio** (or **S**) is for picking takes and redoing slides; its \u2699 Setup switches between the modes.\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 330" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n\n <!-- lanes -->\n <rect x="10" y="20" width="940" height="140" rx="18" style="fill:var(--accent);fill-opacity:.04"/>\n <rect x="10" y="176" width="940" height="140" rx="18" style="fill:var(--accent);fill-opacity:.04"/>\n <text x="30" y="80" font-size="20" font-weight="700" style="fill:var(--accent)">Easy mode</text>\n <text x="30" y="104" font-size="13" style="fill:var(--text-muted)">needs nothing</text>\n <text x="30" y="122" font-size="13" style="fill:var(--text-muted)">to install</text>\n <text x="30" y="236" font-size="20" font-weight="700" style="fill:var(--accent)">Pro mode</text>\n <text x="30" y="260" font-size="13" style="fill:var(--text-muted)">needs OBS</text>\n <text x="30" y="278" font-size="13" style="fill:var(--text-muted)">and ffmpeg</text>\n\n <g font-size="15" font-weight="600" text-anchor="middle" fill="currentColor">\n <rect x="180" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="255" y="84">Chrome or Edge</text>\n <rect x="374" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="449" y="84">records the</text><text x="449" y="104">deck\'s frame</text>\n <rect x="568" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="643" y="84">takes kept</text><text x="643" y="104">in the browser</text>\n <rect x="762" y="50" width="150" height="80" rx="14" style="fill:var(--node-bg)"/>\n <rect x="762" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="837" y="84">\u2193 Download</text><text x="837" y="104" font-weight="400" font-size="13" style="fill:var(--text-muted)">one MP4</text>\n\n <rect x="180" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="255" y="240">any browser</text><text x="255" y="260" font-weight="400" font-size="13" style="fill:var(--text-muted)">Safari, Firefox too</text>\n <rect x="374" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="449" y="240">OBS records</text><text x="449" y="260">the screen</text>\n <rect x="568" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="643" y="240">one recording,</text><text x="643" y="260">every take in it</text>\n <rect x="762" y="206" width="150" height="80" rx="14" style="fill:var(--node-bg)"/>\n <rect x="762" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="837" y="240">\u29C9 ffmpeg</text><text x="837" y="260" font-weight="400" font-size="13" style="fill:var(--text-muted)">the frame-exact cut</text>\n </g>\n <g fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)">\n <path d="M332 90 H372"/><path d="M526 90 H566"/><path d="M720 90 H760"/>\n <path d="M332 246 H372"/><path d="M526 246 H566"/><path d="M720 246 H760"/>\n </g>\n</svg>\n```\n\n### Which mode?\n\n| | Easy mode: in the browser | Pro mode: with OBS |\n|---|---|---|\n| Install | nothing | [OBS Studio](https://obsproject.com) and [ffmpeg](https://ffmpeg.org), both free; a virtual display if your screen isn\'t 16:9 |\n| Browser | Chrome, Edge or another Chromium browser | any: Safari and Firefox too |\n| Screen | any shape: the deck is recorded in a 16:9 frame (9:16 for a [Short](#shorts-and-reels)) | a 16:9 screen, physical or virtual |\n| Quality | 1080p, or 720p on a smaller screen | whatever OBS records |\n| Final video | **Download** joins the picked takes, in the browser | an ffmpeg command |\n\n### Easy mode: record in the browser\n\n1. **\u25CF Record** (R) the first time opens **\u2699 Setup**: pick your camera (or **No camera**, and **Mirror** if you want it flipped; off, it shows you as others see you) and microphone. Recording turns the camera on and off by itself.\n2. **\u25CF Record** again, and share **this tab** when the browser asks. Only the frame is recorded (16:9, or 9:16 for a Short): slides and camera.\n3. Next time, **\u25CF Record** carries on with the slides that have no take yet. When every slide has one, it records from the slide on screen to the end.\n\nFor 1080p the frame needs 1920\xD71080 real pixels (a Retina laptop has them); 1280\xD7720 makes 720p. Smaller: use pro mode.\n\n### Retake slides later\n\nTick slides (shift-click for a range): **\u25CF Record** records just those, then stops.\n\nA take starts with the move in from the slide before it. So when you edit a slide, its takes and the next slide\'s are marked *outdated*: kept, but not picked until you record them again.\n\nTo drop a slide, delete it, then record the slide after it again.\n\n### Takes stay in this browser\n\nEach take is a file in this browser\'s private storage until you purge it, in \u2699 Setup \u2192 Files:\n\n| Purge | Removes |\n|---|---|\n| **Unused takes** | takes the video doesn\'t use |\n| **All takes** | this deck\'s takes |\n| **Every deck\'s takes\u2026** | everything Slidetake keeps here; it says how much first |\n\n### Pro mode: set up OBS\n\n1. In OBS: Tools \u2192 WebSocket Server Settings, turn it on.\n2. In Studio\'s **\u2699 Setup**, turn on **Pro** (top right), enter OBS\'s host, port and password, and **Connect**. Tick *Remember*.\n3. Present on a 16:9 screen, physical or virtual (say 1920\xD71080). Setup checks it.\n\nStudio opens in the mode you used last: its title says **Slidetake Studio Pro** in pro mode, with the size (`1080p`) beside it, and the camera and microphone a take uses on the right.\n\n### A 16:9 screen\n\nYouTube is 16:9. If your screen isn\'t (a MacBook is 16:10, an ultrawide 21:9), add a virtual 1920\xD71080 display, present there with **F**, and point OBS at it:\n\n| System | Virtual display |\n|---|---|\n| macOS | [BetterDisplay](https://github.com/waydabber/BetterDisplay) |\n| Windows | [Virtual Display Driver](https://github.com/VirtualDrivers/Virtual-Display-Driver) |\n| Linux | `xrandr` (X11), or a dummy HDMI plug |\n\nA dummy HDMI plug works on any system.\n\n### Connect from the address\n\n`?obs=localhost:4455` (or `?obs=localhost:4455:password`) in the address connects to OBS as the page opens. OBS runs on the same computer as the deck.\n\n### Add your camera\n\n**C** (or **Camera**) turns your webcam on in its box while presenting. A recording doesn\'t depend on it: it turns on the camera chosen for the deck (or none) by itself. It stays as you left it when the page reloads. While it\'s off, the deck\'s camera settings are ignored, so readers get slides using the whole screen, except a slide with the camera behind it, which shows its layout over an empty frame.\n\n```yaml\n---\npip: bottom-right \u2190 corner, or none\npip_size: 24% \u2190 box width\npip_shape: rect \u2190 or circle\npip_mirror: yes \u2190 mirror the webcam (until you choose in Setup)\ncamera: 24%, full, off \u2190 what V cycles\n---\n```\n\nSlides are always placed clear of the brand and the camera box.\n\n### Move the camera per slide\n\nA comment in a slide changes the camera from that slide on:\n\n```md\n## Intro\n<!-- camera: full --> \u2190 fills the screen\n\n## Pricing\n<!-- camera: 18% flip --> \u2190 small, other side\n```\n\nWords you can combine: `on`, `off`, `full`, `behind` (next), a size like `30%`, a corner, `flip`, `circle` / `rect`, `mirror` / `unmirror`. List them with commas to step through them on one slide: `full, on` opens on you, and the next \u2192 shrinks the camera to its corner and shows the slide.\n\n**V** steps through the deck\'s `camera:` list by hand.\n\n### Talk beside your slides\n\n`behind` fills the frame with you and puts the slide\'s words beside you, on a half see-through card:\n\n```md\n<!-- camera: behind --> \u2190 words on the left\n<!-- camera: behind right --> \u2190 or right, top, bottom\n<!-- camera: behind solid --> \u2190 split screen: you centred on the other side\n<!-- camera: behind bottom clear --> \u2190 no card, for a plain wall\n```\n\nIt stays on its slide; `pip: behind` makes it the whole deck\'s. Between a split slide and a plain card the move is a cross-fade where the cards stand, not a flight across the map. With the camera off, the slide still shows this way, over an empty frame.\n\n### Shorts and Reels\n\n`format: portrait` in the top block makes the deck a 9:16 column, and its video 1080\xD71920 (or 720\xD71280):\n\n- `top` and `bottom` are halves, above or below you; `left` and `right` go below you\n- a slide\'s words are larger, to read on a phone\n- easy mode records the column from the middle of the screen: a Retina laptop makes 720p, a 16" one or a screen on its side 1080p\n\nStart from the [Short template](https://slidetake.com/new?template=short): **New** \u2192 **Short**.\n\n### Take by take\n\n**\u25CF Record** (R) counts down and starts. From then on \u2192 drives everything: slides, reveals and camera moves (a Bluetooth clicker works).\n\n- **\u2190** takes the slide again. The deck goes back and replays the slide\'s entry, so whichever take you pick joins smoothly\n- **B** (or **.**, a clicker\'s blank-screen key) pauses and resumes\n- one press past the last step ends the take; **Esc** ends it early\n\n## 5\uFE0F\u20E3 Edit the video\n\nWhen the take ends you\'re back in **Slidetake Studio**, the same in both modes:\n\n- the player, with **\u25CF Record** and **\u25B6 Preview** under it\n- every slide and its takes on the right: click one to preview it\n- **\u29C9 Chapters** copies the chapters (`0:00 Intro`, one per section) for the YouTube description. YouTube needs at least three, each 10 seconds or more\n\n### Download (easy mode)\n\n**\u25B6 Preview** plays the picked takes back to back.\n\n**\u2193 Download** joins them into one MP4 in seconds, without re-encoding the video, in a folder you pick once: `deck 2026-10-30 20-04-49.mp4`. Pressed again with nothing changed, it says where the video already is.\n\n### The ffmpeg cut (pro mode)\n\nStudio shows the deck\'s latest OBS recording; recording again replaces it here (the old file stays in your OBS folder).\n\nPreviews come from the OBS file: open it once, or, in Chrome and Edge, pick your OBS folder and later recordings load by themselves.\n\n**\u29C9 ffmpeg** copies a command that cuts the picked takes, frame-exact. \u2699 Setup \u2192 Video sets how it encodes.\n\n### Sound\n\nIn \u2699 Setup \u2192 Microphone:\n\n| Setting | Does |\n|---|---|\n| **Voice** (default) | Chrome\'s noise suppression: fans, hum, steady noise |\n| **Raw** | the mic as it is: for a good mic in a quiet room |\n| **\u{1F50A} Volume boost** (on) | raises the voice to YouTube\'s \u221214 LUFS, never past a \u22121.5 dB peak |\n| **Peak limiter** (off) | catches the few loud peaks, so the boost goes all the way |\n\nYouTube turns loud videos down but not quiet ones up, so without the boost your voice sounds quiet. With OBS, Volume boost adds `loudnorm` to the ffmpeg command.\n\n## 6\uFE0F\u20E3 Share and keep\n\nEvery deck you open is **read-only**: Slidetake\'s own decks, templates, files on the web and shared links. Viewing one never changes anything.\n\n### Your copy\n\n**Type in a deck**, and it becomes your copy, at `/edit`. It lives in this browser, remembers where it came from, and is there whenever you come back: **Your copy \u2192** in the editor takes you to it.\n\n- There\'s one copy at a time; the editor bar says whose it is, and marks **edited** while it has changes you haven\'t saved or shared.\n- **Reset to original** throws your edits away.\n- Starting a new copy asks first if the old one has edits you haven\'t kept.\n\n### Save and share\n\n**Save** downloads the markdown. **Share** copies a link: the short link while your copy still matches an online original, otherwise a `/share#deflate:\u2026` link with the whole deck compressed inside it. That part of a link never reaches a server. **Open** loads a markdown file from your computer into your copy, and **\u21E3 Load** a deck from a link: a GitHub file, a gist or any markdown URL.\n\n### Address options\n\n| Option | Does |\n|---|---|\n| `?edit=1` | opens the editor |\n| `?layout=focus` (path, radial, tree) | picks the layout; path is the default |\n| `?mode=light` | light theme |\n| `?duration=10m` | talk length for the timer |\n| `#card-id` | opens at a card |\n\n## \u{1F512} Your data\n\nNo accounts, and no decks kept. Recording stays on your device.\n\nNext, everything that leaves your browser, and where it goes: **[Privacy \u2192](/privacy)**\n';
1513
+ var docs_default = '---\ntitle: Slidetake Docs\ndescription: "How to use Slidetake, step by step: get started, write a deck, present it, record a video in the browser or with OBS, and share it."\nbrand: slidetake\npip: none\n---\n\n# ![](/favicon.svg) Slide<span class="st-take">take</span> Docs\n\nEverything in order: **get started \u2192 write \u2192 present \u2192 record \u2192 edit \u2192 share**. Press \u2192 to walk it, \u2193 \u2191 to go into a step and back out, **O** for the map.\n\n## 1\uFE0F\u20E3 Get started\n\nThree places to use Slidetake, one deck format for all of them: a markdown file. And any AI can write the deck.\n\n| Where | Best for |\n|---|---|\n| **slidetake.com** | writing in the Editor, viewing any deck from a link, sharing |\n| **Your computer** | the same on your own files and images, offline, with an AI agent writing alongside |\n| **Your website** | decks your readers view |\n\n### On slidetake.com\n\nOpen a deck straight from a link: a GitHub file, a gist or any markdown URL. Or press **\u270E Editor** and type: the first keystroke makes it [your copy](#your-copy), kept in this browser.\n\n| Link | Opens |\n|---|---|\n| `/gh/owner/repo/path/deck.md` | a GitHub file, default branch |\n| `/gh/owner/repo@branch/deck.md` | another branch or tag |\n| `/gist/<id>` | a gist\'s first markdown file |\n| `/?src=https://\u2026/deck.md` | anything else |\n| `/new` | a template: blank, talk, recording or short (9:16) |\n\n### On your computer\n\nKeep the deck and its images together in a folder, and run one command there:\n\n```sh\nnpx slidetake deck.md\n```\n\nIt opens on `http://localhost:4300` with the files next to the deck served beside it, so `![](diagram.png)` just works. Save the file in any editor and the deck reloads where you are; type in the browser\'s editor and it saves to the file. Nothing leaves your machine. Needs Node 20 or later.\n\n`npx slidetake` in a folder opens its `index.md`, `deck.md`, `slides.md` or `README.md`. `--open` opens the browser; `--port 5000` picks the port.\n\n### On your website\n\n`slidetake.js` turns a deck on any page into a Slidetake deck. Describe the deck, then load the script:\n\n```html\n<script>\nwindow.SLIDETAKE = {\n markdown: "# My deck\\n\\n## A section",\n settings: {title: "My deck"},\n base: location.href, // for images\n trail: [{label: "My site", url: "/"}],\n themeKey: "my-theme", // your light/dark key\n colors: {accent: "#2563eb"} // your colours\n};\n<\/script>\n<script src="https://cdn.jsdelivr.net/npm/slidetake/dist/slidetake.js"><\/script>\n```\n\nA viewer for your readers. To record, open the deck\'s markdown here or with `npx slidetake`, or add `recording: true` on a page only you see, such as your site\'s local preview. The hugo-continuum theme writes this for pages with `engine: slidetake`, with recording under `hugo server`.\n\n### With AI\n\nAny AI can write a deck: point it at [slidetake.com/llms.txt](/llms.txt) and say what the talk is about.\n\n- **An agent** (Claude Code and the like): *"Write a Slidetake deck about X in talk/deck.md, following slidetake.com/llms.txt"*, then `npx slidetake talk/deck.md`. The deck reloads as it edits.\n- **A chat**: ask for one markdown block, then paste it into **\u270E Editor** here.\n- **Images**: beside the file for an agent; full URLs in a chat.\n\n### A prompt to copy\n\nPaste this into any AI and change the first line:\n\n```text\nWrite a Slidetake deck about <topic>, a 10-minute talk.\nFollow https://slidetake.com/llms.txt.\nA # title card, then 4\u20136 ## sections of 1\u20133 ### cards.\n<!-- steps --> before lists; a ```dot or ```d2 diagram\nwhere a picture helps. Reply with one markdown block.\n```\n\n## 2\uFE0F\u20E3 Write a deck\n\nA deck is an ordinary markdown file. **Every heading becomes a card**, and a heading branches off the nearest shallower heading above it.\n\n```md\n# Product \u2190 the first card\nIntro text.\n\n## Pricing \u2190 from Product\n### Enterprise \u2190 from Pricing\n## Roadmap {#plan} \u2190 from Product, id "plan"\n\nSee the [roadmap](#plan).\n```\n\n### Cards\n\n- Text before the first heading becomes a card of its own.\n- Headings inside fenced code blocks are ignored.\n- A card\'s id is its heading slugified (`## Moving around` \u2192 `moving-around`), or set one with `{#id}` at the end of the heading.\n- A link to `#id` flies to that card.\n- Cards widen for wide tables, columns, diagrams and embeds; anything wider still is scaled to fit.\n\n### What a card can hold\n\nPlain markdown, and the layout follows from what\'s on the card. [See every one in the showcase \u2192](/showcase)\n\n| Write | Get |\n|---|---|\n| `<!-- steps -->` | what follows, one press each, to the end of the card or a `<!-- steps: off -->` |\n| ` ```dot `, ` ```d2 ` | a Graphviz or D2 diagram, in the deck\'s colours |\n| ` ```echarts ` with JSON options | a chart, in the deck\'s colours |\n| ` ```svg ` | an SVG drawing: `currentColor` and `var(--text)`, `var(--accent)` follow dark and light |\n| a YouTube link alone on a line | the video: the next press plays it |\n| `<!-- view: full -->` | a frame for a big image or a chart: 16:9, or 9:16 in a portrait deck |\n\nThe first and last cards animate in on their own. Charts grow in when you arrive going forward; going back, they\'re already drawn, so a take that steps back stays clean.\n\n### Images\n\nThe layout follows from where the images are. The alt text is the caption.\n\n| Write | Get |\n|---|---|\n| an image alone | an image card, laid out by its shape: phone, landscape or 16:9 |\n| an image and text | a split card, the image on the side written first |\n| a list of images, diagrams or charts | a gallery; after `<!-- steps -->`, a carousel |\n| images in one paragraph | a grid, up to four a row |\n| `![](drawing.svg)` | an SVG image, as drawn |\n\n### Deck settings\n\nAn optional block at the top of the file:\n\n```yaml\n---\ntitle: My talk \u2190 page and video title\nduration: 10m \u2190 for the timer\naccent: "#3b82f6" \u2190 the deck\'s colour\nmode: light \u2190 open in light mode\nformat: portrait \u2190 a 9:16 deck, for Shorts and Reels\nbrand: example.com \u2190 top-right corner text\nbrand_style: chip \u2190 the brand as a pill\nlogo: https://\u2026/l.png \u2190 image beside it, or one per theme\nbase: https://\u2026/deck/ \u2190 where images live\nsite: https://\u2026/ \u2190 where /images live\n---\n```\n\n`accent` is one colour; Slidetake makes it bright for dark mode and deep enough to read on white for light mode, and uses it for text accents, lines, charts and diagrams. Camera and recording settings are in [step 4](#4-record-a-video).\n\n### Your logo, per theme and slide\n\n`logo:` can be one image for both themes, or one for each, with named variants:\n\n```yaml\nlogo:\n light: /img/logo-light.svg \u2190 on light slides\n dark: /img/logo-dark.svg \u2190 on dark slides\n variants:\n url: { light: /img/url-light.svg, dark: /img/url-dark.svg }\n```\n\nA comment in a slide picks one for that slide only:\n\n```md\n<!-- logo: url --> \u2190 a variant\n<!-- logo: none --> \u2190 no logo\n<!-- logo: /img/other.svg --> \u2190 an image of its own\n```\n\nA slide without one shows the deck\'s logo. The logo changes as you enter a slide, never on a timer, so every take of a slide, retakes included, shows the same one, and the theme switch (**L**) swaps light and dark at once.\n\n### Decks from elsewhere\n\n**reveal.js** decks open as they are: `---` starts a slide and `--` a vertical one beneath it. Fragments (`fade-up`, `grow`, \u2026), `r-stack`, `<!-- .element: \u2026 -->`, `<section>` slides, `data-autoslide`, `data-gsap` entrances and `title-scramble` all work.\n\n**Older `+++` decks**, with `id`, `parent`, `x`, `y` frontmatter, still load.\n\n## 3\uFE0F\u20E3 Present\n\nClick a card to fly to it. Drag to pan; scroll or pinch to zoom. On a touch screen, the bottom bar adds \u2190 \u2192 buttons.\n\n| Key | Does |\n|---|---|\n| \u2192 \u2190 Space | next / previous step, in document order (PgDn and PgUp too: what clickers send) |\n| Home End | first / last slide |\n| \u2193 \u2191 | first child / parent |\n| O | the whole map; **O** again or Esc goes back |\n| F | fullscreen; **F** again or Esc leaves |\n| K, / or ? | these keys; again closes them |\n| 1 2 3 4 | focus, path, radial, tree |\n| + \u2212 | bigger / smaller slides (remembered; = works for +) |\n| E \xB7 L | editor \xB7 light / dark |\n| C \xB7 V | camera \xB7 camera layouts |\n| R \xB7 S | record \xB7 Studio |\n| P \xB7 D | in Studio: preview \xB7 download |\n\n### Layouts\n\n**Focus** doesn\'t travel at all: the next slide fades in where the last one was.\n\n**Path**, the default, is made for presenting and video: a staircase in presenting order. Each section is a row, and the next one starts just below where the last ended, so every move is a short step right or down.\n\n**Radial** rings out from the first card, and **tree** is a top-down chart.\n\nThe layout you pick is remembered in this browser, for every deck.\n\n### On screen\n\nText keeps one size within a section and only changes when the section does; charts and diagrams are fitted on their own.\n\n`<!-- view: overview -->` on a slide pulls back to the whole map for a beat before flying in: a good start to a chapter.\n\n### Progress and timer\n\nIn fullscreen the cursor and controls hide after two seconds without the mouse moving, and a thin bar along the bottom fills with every press.\n\nWith `duration: 10m` (or `90s`, `1h`, `12:30`), a lighter layer of the same colour grows behind it with the clock: if it shows past the solid fill, you\'re behind; if it reaches the end, the bar pulses. The timer is for you, so recordings show progress only, unless the deck says `timer: always`. `progress: off` hides the bar.\n\n## 4\uFE0F\u20E3 Record a video\n\nTwo modes, both slide by slide, so there\'s no timeline to edit afterwards. **\u25CF Record** in the bottom bar (or **R**) starts a take: the first time it opens Setup, then it records the slides without a take. **\u25CF Studio** (or **S**) is for picking takes and redoing slides; its \u2699 Setup switches between the modes.\n\n```svg\n<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 330" font-family="IBM Plex Sans, system-ui, sans-serif">\n <defs>\n <marker id="head" viewBox="0 0 10 10" refX="8" refY="5" markerUnits="userSpaceOnUse" markerWidth="11" markerHeight="11" orient="auto-start-reverse">\n <path d="M0 0 L10 5 L0 10 z" style="fill:var(--accent)"/>\n </marker>\n </defs>\n\n <!-- lanes -->\n <rect x="10" y="20" width="940" height="140" rx="18" style="fill:var(--accent);fill-opacity:.04"/>\n <rect x="10" y="176" width="940" height="140" rx="18" style="fill:var(--accent);fill-opacity:.04"/>\n <text x="30" y="80" font-size="20" font-weight="700" style="fill:var(--accent)">Easy mode</text>\n <text x="30" y="104" font-size="13" style="fill:var(--text-muted)">needs nothing</text>\n <text x="30" y="122" font-size="13" style="fill:var(--text-muted)">to install</text>\n <text x="30" y="236" font-size="20" font-weight="700" style="fill:var(--accent)">Pro mode</text>\n <text x="30" y="260" font-size="13" style="fill:var(--text-muted)">needs OBS</text>\n <text x="30" y="278" font-size="13" style="fill:var(--text-muted)">and ffmpeg</text>\n\n <g font-size="15" font-weight="600" text-anchor="middle" fill="currentColor">\n <rect x="180" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="255" y="84">Chrome or Edge</text>\n <rect x="374" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="449" y="84">records the</text><text x="449" y="104">deck\'s frame</text>\n <rect x="568" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="643" y="84">takes kept</text><text x="643" y="104">in the browser</text>\n <rect x="762" y="50" width="150" height="80" rx="14" style="fill:var(--node-bg)"/>\n <rect x="762" y="50" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="837" y="84">\u2193 Download</text><text x="837" y="104" font-weight="400" font-size="13" style="fill:var(--text-muted)">one MP4</text>\n\n <rect x="180" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="255" y="240">any browser</text><text x="255" y="260" font-weight="400" font-size="13" style="fill:var(--text-muted)">Safari, Firefox too</text>\n <rect x="374" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="449" y="240">OBS records</text><text x="449" y="260">the screen</text>\n <rect x="568" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.06;stroke:var(--accent);stroke-opacity:.45" stroke-width="1.5"/>\n <text x="643" y="240">one recording,</text><text x="643" y="260">every take in it</text>\n <rect x="762" y="206" width="150" height="80" rx="14" style="fill:var(--node-bg)"/>\n <rect x="762" y="206" width="150" height="80" rx="14" style="fill:var(--accent);fill-opacity:.12;stroke:var(--accent)" stroke-width="2"/>\n <text x="837" y="240">\u29C9 ffmpeg</text><text x="837" y="260" font-weight="400" font-size="13" style="fill:var(--text-muted)">the frame-exact cut</text>\n </g>\n <g fill="none" style="stroke:var(--accent)" stroke-width="2.5" marker-end="url(#head)">\n <path d="M332 90 H372"/><path d="M526 90 H566"/><path d="M720 90 H760"/>\n <path d="M332 246 H372"/><path d="M526 246 H566"/><path d="M720 246 H760"/>\n </g>\n</svg>\n```\n\n### Which mode?\n\n| | Easy mode: in the browser | Pro mode: with OBS |\n|---|---|---|\n| Install | nothing | [OBS Studio](https://obsproject.com) and [ffmpeg](https://ffmpeg.org), both free; a virtual display if your screen isn\'t 16:9 |\n| Browser | Chrome, Edge or another Chromium browser | any: Safari and Firefox too |\n| Screen | any shape: the deck is recorded in a 16:9 frame (9:16 for a [Short](#shorts-and-reels)) | a 16:9 screen, physical or virtual |\n| Quality | 1080p, or 720p on a smaller screen | whatever OBS records |\n| Final video | **Download** joins the picked takes, in the browser | an ffmpeg command |\n\n### Easy mode: record in the browser\n\n1. **\u25CF Record** (R) the first time opens **\u2699 Setup**: pick your camera (or **No camera**, and **Mirror** if you want it flipped; off, it shows you as others see you) and microphone. Recording turns the camera on and off by itself.\n2. **\u25CF Record** again, and share **this tab** when the browser asks. Only the frame is recorded (16:9, or 9:16 for a Short): slides and camera.\n3. Next time, **\u25CF Record** carries on with the slides that have no take yet. When every slide has one, it records from the slide on screen to the end.\n\nFor 1080p the frame needs 1920\xD71080 real pixels (a Retina laptop has them); 1280\xD7720 makes 720p. Smaller: use pro mode.\n\n### Retake slides later\n\nTick slides (shift-click for a range): **\u25CF Record** records just those, then stops.\n\nA take starts with the move in from the slide before it. So when you edit a slide, its takes and the next slide\'s are marked *outdated*: kept, but not picked until you record them again.\n\nTo drop a slide, delete it, then record the slide after it again.\n\n### Takes stay in this browser\n\nEach take is a file in this browser\'s private storage until you purge it, in \u2699 Setup \u2192 Files:\n\n| Purge | Removes |\n|---|---|\n| **Unused takes** | takes the video doesn\'t use |\n| **All takes** | this deck\'s takes |\n| **Every deck\'s takes\u2026** | everything Slidetake keeps here; it says how much first |\n\n### Pro mode: set up OBS\n\n1. In OBS: Tools \u2192 WebSocket Server Settings, turn it on.\n2. In Studio\'s **\u2699 Setup**, turn on **Pro** (top right), enter OBS\'s host, port and password, and **Connect**. Tick *Remember*.\n3. Present on a 16:9 screen, physical or virtual (say 1920\xD71080). Setup checks it.\n\nStudio opens in the mode you used last: its title says **Slidetake Studio Pro** in pro mode, with the size (`1080p`) beside it, and the camera and microphone a take uses on the right.\n\n### A 16:9 screen\n\nYouTube is 16:9. If your screen isn\'t (a MacBook is 16:10, an ultrawide 21:9), add a virtual 1920\xD71080 display, present there with **F**, and point OBS at it:\n\n| System | Virtual display |\n|---|---|\n| macOS | [BetterDisplay](https://github.com/waydabber/BetterDisplay) |\n| Windows | [Virtual Display Driver](https://github.com/VirtualDrivers/Virtual-Display-Driver) |\n| Linux | `xrandr` (X11), or a dummy HDMI plug |\n\nA dummy HDMI plug works on any system.\n\n### Connect from the address\n\n`?obs=localhost:4455` (or `?obs=localhost:4455:password`) in the address connects to OBS as the page opens. OBS runs on the same computer as the deck.\n\n### Add your camera\n\n**C** (or **Camera**) turns your webcam on in its box while presenting. A recording doesn\'t depend on it: it turns on the camera chosen for the deck (or none) by itself. It stays as you left it when the page reloads. While it\'s off, the deck\'s camera settings are ignored, so readers get slides using the whole screen, except a slide with the camera behind it, which shows its layout over an empty frame.\n\n```yaml\n---\npip: bottom-right \u2190 corner, or none\npip_size: 24% \u2190 box width\npip_shape: rect \u2190 or circle\npip_mirror: yes \u2190 mirror the webcam (until you choose in Setup)\ncamera: 24%, full, off \u2190 what V cycles\n---\n```\n\nSlides are always placed clear of the brand and the camera box.\n\n### Move the camera per slide\n\nA comment in a slide changes the camera from that slide on:\n\n```md\n## Intro\n<!-- camera: full --> \u2190 fills the screen\n\n## Pricing\n<!-- camera: 18% flip --> \u2190 small, other side\n```\n\nWords you can combine: `on`, `off`, `full`, `behind` (next), a size like `30%`, a corner, `flip`, `circle` / `rect`, `mirror` / `unmirror`. List them with commas to step through them on one slide: `full, on` opens on you, and the next \u2192 shrinks the camera to its corner and shows the slide.\n\n**V** steps through the deck\'s `camera:` list by hand.\n\n### Talk beside your slides\n\n`behind` fills the frame with you and puts the slide\'s words beside you, on a half see-through card:\n\n```md\n<!-- camera: behind --> \u2190 words on the left\n<!-- camera: behind right --> \u2190 or right, top, bottom\n<!-- camera: behind solid --> \u2190 split screen: you centred on the other side\n<!-- camera: behind bottom clear --> \u2190 no card, for a plain wall\n```\n\nIt stays on its slide; `pip: behind` makes it the whole deck\'s. Between a split slide and a plain card the move is a cross-fade where the cards stand, not a flight across the map. With the camera off, the slide still shows this way, over an empty frame.\n\n### Shorts and Reels\n\n`format: portrait` in the top block makes the deck a 9:16 column, and its video 1080\xD71920 (or 720\xD71280):\n\n- `top` and `bottom` are halves, above or below you; `left` and `right` go below you\n- a slide\'s words are larger, to read on a phone\n- easy mode records the column from the middle of the screen: a Retina laptop makes 720p, a 16" one or a screen on its side 1080p\n\nStart from the [Short template](https://slidetake.com/new?template=short): **New** \u2192 **Short**.\n\n### Take by take\n\n**\u25CF Record** (R) counts down and starts. From then on \u2192 drives everything: slides, reveals and camera moves (a Bluetooth clicker works).\n\n- **\u2190** takes the slide again. The deck goes back and replays the slide\'s entry, so whichever take you pick joins smoothly\n- **B** (or **.**, a clicker\'s blank-screen key) pauses and resumes\n- one press past the last step ends the take; **Esc** ends it early\n\n## 5\uFE0F\u20E3 Edit the video\n\nWhen the take ends you\'re back in **Slidetake Studio**, the same in both modes:\n\n- the player, with **\u25CF Record** and **\u25B6 Preview** under it\n- every slide and its takes on the right: click one to preview it\n- **\u29C9 Chapters** copies the chapters (`0:00 Intro`, one per section) for the YouTube description. YouTube needs at least three, each 10 seconds or more\n\n### Download (easy mode)\n\n**\u25B6 Preview** plays the picked takes back to back.\n\n**\u2193 Download** joins them into one MP4 in seconds, without re-encoding the video, in a folder you pick once: `deck 2026-10-30 20-04-49.mp4`. Pressed again with nothing changed, it says where the video already is.\n\n### The ffmpeg cut (pro mode)\n\nStudio shows the deck\'s latest OBS recording; recording again replaces it here (the old file stays in your OBS folder).\n\nPreviews come from the OBS file: open it once, or, in Chrome and Edge, pick your OBS folder and later recordings load by themselves.\n\n**\u29C9 ffmpeg** copies a command that cuts the picked takes, frame-exact. \u2699 Setup \u2192 Video sets how it encodes.\n\n### Sound\n\nIn \u2699 Setup \u2192 Microphone:\n\n| Setting | Does |\n|---|---|\n| **Voice** (default) | Chrome\'s noise suppression: fans, hum, steady noise |\n| **Raw** | the mic as it is: for a good mic in a quiet room |\n| **\u{1F50A} Volume boost** (on) | raises the voice to YouTube\'s \u221214 LUFS, never past a \u22121.5 dB peak |\n| **Peak limiter** (off) | catches the few loud peaks, so the boost goes all the way |\n\nYouTube turns loud videos down but not quiet ones up, so without the boost your voice sounds quiet. With OBS, Volume boost adds `loudnorm` to the ffmpeg command.\n\n## 6\uFE0F\u20E3 Share and keep\n\nEvery deck you open is **read-only**: Slidetake\'s own decks, templates, files on the web and shared links. Viewing one never changes anything.\n\n### Your copy\n\n**Type in a deck**, and it becomes your copy, at `/edit`. It lives in this browser, remembers where it came from, and is there whenever you come back: **Your copy \u2192** in the editor takes you to it.\n\n- There\'s one copy at a time; the editor bar says whose it is, and marks **edited** while it has changes you haven\'t saved or shared.\n- **Reset to original** throws your edits away.\n- Starting a new copy asks first if the old one has edits you haven\'t kept.\n\n### Save and share\n\n**Save** downloads the markdown. **Share** copies a link: the short link while your copy still matches an online original, otherwise a `/share#deflate:\u2026` link with the whole deck compressed inside it. That part of a link never reaches a server. **Open** loads a markdown file from your computer into your copy, and **\u21E3 Load** a deck from a link: a GitHub file, a gist or any markdown URL.\n\n### Address options\n\n| Option | Does |\n|---|---|\n| `?edit=1` | opens the editor |\n| `?layout=focus` (path, radial, tree) | picks the layout; path is the default |\n| `?mode=light` | light theme |\n| `?duration=10m` | talk length for the timer |\n| `#card-id` | opens at a card |\n\n## \u{1F512} Your data\n\nNo accounts, and no decks kept. Recording stays on your device.\n\nNext, everything that leaves your browser, and where it goes: **[Privacy \u2192](/privacy)**\n';
1512
1514
 
1513
1515
  // src/features.md
1514
- var features_default = "---\ntitle: Slidetake Features\ndescription: \"Every Slidetake feature, one line each: recording in the browser or with OBS, a map instead of a stack, the camera in the deck, plain markdown, your colours, and where it runs.\"\nbrand: slidetake\npip: none\n---\n\n# ![](/favicon.svg) Slide<span class=\"st-take\">take</span> Features\n\nThe complete list, one line each. Press \u2192 to walk it, **O** for the map.\n\n## \u270D\uFE0F Write in markdown, with AI\n\n| Feature | Advantage |\n|---|---|\n| **The AI loop** (`npx slidetake`) | an agent writes the file; the slide you're on redraws on save |\n| **One file** | any editor, versioned in git, reviewed like code |\n| **Steps, diagrams, charts** | Graphviz, D2, SVG and ECharts as text |\n| **Image cards** | laid out by shape: beside text, across the card, galleries, carousels, grids |\n| **Full-screen cards** (`view: full`) | a frame for a big image or a chart: 16:9, or 9:16 in a Short |\n| **YouTube** | plays on the next press, pauses when you leave |\n| **reveal.js and `+++` decks** | open as they are |\n\n## \u{1F5FA}\uFE0F Present on a spatial canvas\n\n| Feature | Advantage |\n|---|---|\n| **Four layouts** | focus, path (the default), radial, tree |\n| **The map** (O) | the whole talk at a glance, and back |\n| **Map moments** (`view: overview`) | open a chapter on the big picture |\n| **Steady text** | one size per section, so slides don't jump |\n| **Short flights** | camera moves made to read well on video |\n| **Charts that grow in** | drawn as you arrive going forward; going back they're already there, so a retake stays clean |\n| **Progress and timer** | a bar that fills, and a clock that tells you if you're behind |\n\n### The camera is part of the deck\n\n| Feature | Advantage |\n|---|---|\n| **Webcam in its box** | you and the slides in one recording, no compositing |\n| **Camera per slide** | corner, size, side, circle, full screen, behind the slide or off |\n| **Words around you** (`behind left`\u2026) | the slide's content beside, above or below you, on a see-through card, a solid one (split screen) or none |\n| **Smooth moves** | the camera glides between corner, full frame and split screen, swaps sides with the words, and cross-fades between a split screen and a card |\n| **Steps on one slide** | open on you, then reveal the slide |\n| **Camera layouts** (V) | try them live, without editing the deck |\n| **Off until you turn it on** | the slides get the whole screen; a slide built around you shows an empty frame; a reload remembers it |\n| **Mirror** (Setup) | off by default, so writing behind you reads the right way |\n\n### Your colours\n\n| Feature | Advantage |\n|---|---|\n| **Dark and light** (L) | follows the reader, or your site |\n| **`accent:`** | one colour, shaded for both modes, charts and diagrams included |\n| **`brand:` and `logo:`** | your name on every frame |\n| **Site colours** | embedded decks wear your site's palette and header |\n\n## \u{1F534} Record slide by slide\n\nTwo modes, the same takes: **easy** in the browser, **pro** with OBS.\n\n| Feature | Advantage |\n|---|---|\n| **Takes per slide** (\u2190) | every attempt kept; recording never stops |\n| **Pause and resume** (B) | step away without a gap to cut |\n| **Clicker support** | any Bluetooth presenter remote moves the deck |\n| **Shorts and Reels** (`format: portrait`) | a 9:16 deck and video, the words above or below you; New \u2192 Short starts one |\n\n### Easy mode: in the browser\n\nFor Chrome, Edge or another Chromium browser, on a screen with enough pixels: 1920\xD71080 for 1080p (a Retina laptop has them), 1280\xD7720 for 720p.\n\n| Feature | Advantage |\n|---|---|\n| **Nothing to install** | the deck records itself in a 16:9 frame (9:16 for a Short), on a screen of any shape |\n| **Retake any slide later** | tick slides and record just those; an edited slide's takes are marked outdated |\n| **Takes kept in the browser** | every take, from every recording, until you purge them |\n\n### Pro mode: with OBS\n\nFor Safari, Firefox or any browser, a screen too small for easy mode, or whatever OBS can record.\n\n| Feature | Advantage |\n|---|---|\n| **[OBS](https://obsproject.com), driven by the deck** | it starts and stops for you; you only talk |\n| **16:9 check** | Setup warns before a video with bars; use a 16:9 screen, physical or virtual |\n\n## \u2702\uFE0F Edit by picking the best take\n\n| Feature | Advantage |\n|---|---|\n| **Slidetake Studio** | every slide's takes, Preview and Chapters, the same in both modes |\n| **Download** (easy mode) | the picked takes joined into one MP4 in seconds |\n| **Frame-exact [ffmpeg](https://ffmpeg.org) cut** (pro mode) | one command, no video editor |\n| **Volume boost** | your voice at YouTube's loudness (\u221214 LUFS), never clipped |\n| **YouTube chapters** | one click copies them, one per section |\n\n## \u{1F310} Run it anywhere\n\n| Where | Also gives you |\n|---|---|\n| **slidetake.com** | share links that carry the whole deck; your copy of any deck, kept in this browser |\n| **Your computer** | relative images, reload on save, browser edits saved to the file |\n| **Your website** | a clean viewer in your site's colours; the hugo-continuum theme with one frontmatter key |\n\n## \u{1F512} Private and open\n\n| Feature | Advantage |\n|---|---|\n| **No accounts, no stored decks** | nothing to sign up for or lose ([privacy](/privacy)) |\n| **Decks inside links** | the deck stays in the `#` part, never sent to a server |\n| **Analytics you can turn off** | one button on slidetake.com |\n| **Open source, Apache 2.0** | read it, host it, change it: [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake) |\n\nNext, see them working: **[Showcase \u2192](/showcase)**\n";
1516
+ var features_default = "---\ntitle: Slidetake Features\ndescription: \"Every Slidetake feature, one line each: recording in the browser or with OBS, a map instead of a stack, the camera in the deck, plain markdown, your colours, and where it runs.\"\nbrand: slidetake\npip: none\n---\n\n# ![](/favicon.svg) Slide<span class=\"st-take\">take</span> Features\n\nThe complete list, one line each. Press \u2192 to walk it, **O** for the map.\n\n## \u270D\uFE0F Write in markdown, with AI\n\n| Feature | Advantage |\n|---|---|\n| **The AI loop** (`npx slidetake`) | an agent writes the file; the slide you're on redraws on save |\n| **One file** | any editor, versioned in git, reviewed like code |\n| **Steps, diagrams, charts** | Graphviz, D2, SVG and ECharts as text |\n| **Image cards** | laid out by shape: beside text, across the card, galleries, carousels, grids |\n| **Full-screen cards** (`view: full`) | a frame for a big image or a chart: 16:9, or 9:16 in a Short |\n| **YouTube** | plays on the next press, pauses when you leave |\n| **reveal.js and `+++` decks** | open as they are |\n\n## \u{1F5FA}\uFE0F Present on a spatial canvas\n\n| Feature | Advantage |\n|---|---|\n| **Four layouts** | focus, path (the default), radial, tree |\n| **The map** (O) | the whole talk at a glance, and back |\n| **Map moments** (`view: overview`) | open a chapter on the big picture |\n| **Steady text** | one size per section, so slides don't jump |\n| **Short flights** | camera moves made to read well on video |\n| **Charts that grow in** | drawn as you arrive going forward; going back they're already there, so a retake stays clean |\n| **Progress and timer** | a bar that fills, and a clock that tells you if you're behind |\n\n### The camera is part of the deck\n\n| Feature | Advantage |\n|---|---|\n| **Webcam in its box** | you and the slides in one recording, no compositing |\n| **Camera per slide** | corner, size, side, circle, full screen, behind the slide or off |\n| **Words around you** (`behind left`\u2026) | the slide's content beside, above or below you, on a see-through card, a solid one (split screen) or none |\n| **Smooth moves** | the camera glides between corner, full frame and split screen, swaps sides with the words, and cross-fades between a split screen and a card |\n| **Steps on one slide** | open on you, then reveal the slide |\n| **Camera layouts** (V) | try them live, without editing the deck |\n| **Off until you turn it on** | the slides get the whole screen; a slide built around you shows an empty frame; a reload remembers it |\n| **Mirror** (Setup) | off by default, so writing behind you reads the right way |\n\n### Your colours\n\n| Feature | Advantage |\n|---|---|\n| **Dark and light** (L) | follows the reader, or your site |\n| **`accent:`** | one colour, shaded for both modes, charts and diagrams included |\n| **`brand:` and `logo:`** | your name on every frame |\n| **A logo per theme and slide** | light and dark versions, and `<!-- logo: url -->` for a title or closing slide: the same in every take |\n| **Site colours** | embedded decks wear your site's palette and header |\n\n## \u{1F534} Record slide by slide\n\nTwo modes, the same takes: **easy** in the browser, **pro** with OBS.\n\n| Feature | Advantage |\n|---|---|\n| **Takes per slide** (\u2190) | every attempt kept; recording never stops |\n| **Pause and resume** (B) | step away without a gap to cut |\n| **Clicker support** | any Bluetooth presenter remote moves the deck |\n| **Shorts and Reels** (`format: portrait`) | a 9:16 deck and video, the words above or below you; New \u2192 Short starts one |\n\n### Easy mode: in the browser\n\nFor Chrome, Edge or another Chromium browser, on a screen with enough pixels: 1920\xD71080 for 1080p (a Retina laptop has them), 1280\xD7720 for 720p.\n\n| Feature | Advantage |\n|---|---|\n| **Nothing to install** | the deck records itself in a 16:9 frame (9:16 for a Short), on a screen of any shape |\n| **Retake any slide later** | tick slides and record just those; an edited slide's takes are marked outdated |\n| **Takes kept in the browser** | every take, from every recording, until you purge them |\n\n### Pro mode: with OBS\n\nFor Safari, Firefox or any browser, a screen too small for easy mode, or whatever OBS can record.\n\n| Feature | Advantage |\n|---|---|\n| **[OBS](https://obsproject.com), driven by the deck** | it starts and stops for you; you only talk |\n| **16:9 check** | Setup warns before a video with bars; use a 16:9 screen, physical or virtual |\n\n## \u2702\uFE0F Edit by picking the best take\n\n| Feature | Advantage |\n|---|---|\n| **Slidetake Studio** | every slide's takes, Preview and Chapters, the same in both modes |\n| **Download** (easy mode) | the picked takes joined into one MP4 in seconds |\n| **Frame-exact [ffmpeg](https://ffmpeg.org) cut** (pro mode) | one command, no video editor |\n| **Volume boost** | your voice at YouTube's loudness (\u221214 LUFS), never clipped |\n| **YouTube chapters** | one click copies them, one per section |\n\n## \u{1F310} Run it anywhere\n\n| Where | Also gives you |\n|---|---|\n| **slidetake.com** | share links that carry the whole deck; your copy of any deck, kept in this browser |\n| **Your computer** | relative images, reload on save, browser edits saved to the file |\n| **Your website** | a clean viewer in your site's colours; the hugo-continuum theme with one frontmatter key |\n\n## \u{1F512} Private and open\n\n| Feature | Advantage |\n|---|---|\n| **No accounts, no stored decks** | nothing to sign up for or lose ([privacy](/privacy)) |\n| **Decks inside links** | the deck stays in the `#` part, never sent to a server |\n| **Analytics you can turn off** | one button on slidetake.com |\n| **Open source, Apache 2.0** | read it, host it, change it: [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake) |\n\nNext, see them working: **[Showcase \u2192](/showcase)**\n";
1515
1517
 
1516
1518
  // src/privacy.md
1517
1519
  var privacy_default = "---\ntitle: Slidetake Privacy\nbrand: slidetake\npip: none\n---\n\n# ![](/favicon.svg) Slide<span class=\"st-take\">take</span> Privacy\n\nSlidetake has no accounts and keeps no decks. This page lists everything that leaves your browser, and where it goes.\n\n*Last updated 31 October 2026.*\n\n## \u{1F4CA} What slidetake.com collects\n\nslidetake.com counts visits with **Google Analytics**: the page's address, your browser and screen, and roughly where you are. Google Analytics sets its own cookies (`_ga`) to tell visits apart.\n\nThe address it records leaves out the part after `#` and `?obs=`, so neither a deck carried in a link nor an OBS password reaches it.\n\n**You can turn it off:** the **Privacy & analytics** button in the header (the pulse icon) \u2192 *Turn analytics off*. Nothing more is sent from that browser, the `_ga` cookies are removed, and the tag isn't loaded on later visits. Cloudflare, which serves the site, still sees each request the way any web server does.\n\n> That is the only analytics. A copy of Slidetake you host yourself, the embed on your own site, and `npx slidetake` send none.\n\n## \u{1F3A5} Recording stays on your device\n\nYour camera, your microphone and the tab you share are read only by your browser, and only while you record. Nothing is uploaded:\n\n- **Easy mode** saves each take in this browser's private storage. **\u2193 Download** writes the video to a folder you pick.\n- **Pro mode** has OBS record on your computer; Slidetake only tells it when to start and stop.\n\n## \u{1F4BE} What stays in your browser\n\nKept in this browser's storage on your device, and never sent anywhere:\n\n| What | Why |\n|---|---|\n| Your copy of a deck | so it's there when you come back |\n| Theme, layout, slide size, editor width | your preferences |\n| Recorded takes | to cut the video, until you purge them |\n| Camera, mic and sound choices | your recording setup |\n| Folders you pick for videos | so Studio needn't ask again |\n| OBS host, port and password | only with *Remember*, as plain text |\n| Your analytics choice | so *off* stays off |\n\nClearing this site's data in your browser removes all of it, recorded takes included.\n\n## \u{1F310} Services a deck can reach\n\nOpening Slidetake, or a deck that uses these, loads files from other services. Each sees your IP address, as with any web request.\n\n| Service | When |\n|---|---|\n| Google Fonts | every page, for the typefaces |\n| cdnjs, jsDelivr | every page (animation, markdown), and for diagrams, charts, recording and OBS |\n| esm.sh | a deck with a D2 diagram |\n| GitHub | opening a GitHub file or gist |\n| YouTube (youtube-nocookie.com) | a deck with a YouTube link; YouTube's own cookies only once you play it |\n| The deck's own address | opening a deck from a link, and its images |\n\nOBS is reached only on the address you give it, normally your own computer.\n\n## \u{1F517} Decks in links\n\nA shared link carries the whole deck after `#`. Browsers never send that part of an address to a server, so the deck travels from you to whoever opens the link without passing through slidetake.com.\n\n## \u{1F4BB} On your computer\n\n`npx slidetake` runs on your machine, serves only the deck's folder, and listens only on `localhost`. It sends nothing to slidetake.com or anyone else. The deck's own diagrams, charts and fonts load from the services above as on the web.\n\n## \u2709\uFE0F Questions\n\nOpen an issue on [github.com/slidetake/slidetake](https://github.com/slidetake/slidetake/issues). Slidetake is open source, so everything above can be checked in its code.\n";
@@ -1559,15 +1561,15 @@
1559
1561
  return ENTITIES[e.toLowerCase()] ?? m;
1560
1562
  });
1561
1563
  }
1562
- function attrsOf(text) {
1564
+ function attrsOf(text2) {
1563
1565
  const a = {};
1564
- for (const x of text.matchAll(/([\w-]+)="([^"]*)"/g)) a[x[1]] = x[2];
1566
+ for (const x of text2.matchAll(/([\w-]+)="([^"]*)"/g)) a[x[1]] = x[2];
1565
1567
  return a;
1566
1568
  }
1567
- function splitOutsideFences(text, sep) {
1569
+ function splitOutsideFences(text2, sep) {
1568
1570
  const out = [[]];
1569
1571
  let fence = null;
1570
- text.split("\n").forEach((line) => {
1572
+ text2.split("\n").forEach((line) => {
1571
1573
  const f = line.match(/^\s{0,3}(`{3,}|~{3,})/);
1572
1574
  if (f) {
1573
1575
  if (!fence) fence = f[1];
@@ -1617,45 +1619,87 @@
1617
1619
  const m = directiveText(body).match(/<!--\s*camera\s*:\s*([\s\S]*?)\s*-->/i);
1618
1620
  return m ? m[1].trim() : null;
1619
1621
  }
1622
+ function logoDirective(body) {
1623
+ const m = directiveText(body).match(/<!--\s*logo\s*:\s*([\s\S]*?)\s*-->/i);
1624
+ return m ? m[1].trim() : null;
1625
+ }
1626
+ var unquote = (v) => v.trim().replace(/^["']|["']$/g, "");
1627
+ function flowValue(raw) {
1628
+ const v = raw.trim();
1629
+ if (!/^\{[\s\S]*\}$/.test(v)) return unquote(v);
1630
+ const map = {};
1631
+ const parts = [];
1632
+ let depth = 0, cur = "";
1633
+ for (const ch of v.slice(1, -1)) {
1634
+ if (ch === "{") depth++;
1635
+ if (ch === "}") depth--;
1636
+ if (ch === "," && !depth) {
1637
+ parts.push(cur);
1638
+ cur = "";
1639
+ } else cur += ch;
1640
+ }
1641
+ parts.push(cur);
1642
+ parts.forEach((p) => {
1643
+ const m = p.trim().match(/^([A-Za-z_][\w-]*)\s*:\s*([\s\S]*)$/);
1644
+ if (m) map[m[1].toLowerCase()] = flowValue(m[2]);
1645
+ });
1646
+ return map;
1647
+ }
1648
+ function settingsMap(lines) {
1649
+ const out = {};
1650
+ for (let i = 0; i < lines.length; i++) {
1651
+ const m = lines[i].match(/^([A-Za-z_][\w-]*)\s*:\s*(.*)$/);
1652
+ if (!m) continue;
1653
+ const key = m[1].toLowerCase(), val = m[2].trim();
1654
+ if (val !== "") {
1655
+ out[key] = flowValue(val);
1656
+ continue;
1657
+ }
1658
+ const block = [];
1659
+ while (i + 1 < lines.length && /^(\s|-(\s|$)|$)/.test(lines[i + 1])) block.push(lines[++i]);
1660
+ out[key] = settingsBlockValue(block);
1661
+ }
1662
+ return out;
1663
+ }
1664
+ function settingsBlockValue(lines) {
1665
+ const real = lines.filter((l) => l.trim());
1666
+ if (!real.length) return [];
1667
+ const indent = Math.min(...real.map((l) => (
1668
+ /** @type {RegExpMatchArray} */
1669
+ l.match(/^\s*/)[0].length
1670
+ )));
1671
+ const flat = real.map((l) => l.slice(indent));
1672
+ if (/^-(\s|$)/.test(flat[0])) return flat.filter((l) => /^-\s+\S/.test(l)).map((l) => unquote(l.replace(/^-\s+/, "")));
1673
+ return settingsMap(flat);
1674
+ }
1620
1675
  function parseDeckSettings(src) {
1621
- const deck2 = {};
1622
1676
  const fm = src.match(/^---[ \t]*\n([\s\S]*?)\n---[ \t]*(?:\n|$)/);
1623
- if (!fm) return { deck: deck2, body: src };
1624
- let listKey = null;
1625
- fm[1].split("\n").forEach((l) => {
1626
- const item = l.match(/^\s+-\s+(.*)$/);
1627
- if (item && listKey) {
1628
- deck2[listKey].push(item[1].trim().replace(/^["']|["']$/g, ""));
1629
- return;
1630
- }
1631
- const m = l.match(/^([A-Za-z_][\w-]*)\s*:\s*(.*)$/);
1632
- if (!m) {
1633
- listKey = null;
1634
- return;
1635
- }
1636
- const key = m[1].toLowerCase(), val = m[2].trim().replace(/^["']|["']$/g, "");
1637
- if (val === "") {
1638
- deck2[key] = [];
1639
- listKey = key;
1640
- } else {
1641
- deck2[key] = val;
1642
- listKey = null;
1643
- }
1644
- });
1645
- return { deck: deck2, body: src.slice(fm[0].length) };
1677
+ if (!fm) return { deck: {}, body: src };
1678
+ return { deck: settingsMap(fm[1].split("\n")), body: src.slice(fm[0].length) };
1646
1679
  }
1647
1680
  function settingsBlock(settings) {
1648
1681
  const plain = (v) => typeof v === "string" || typeof v === "number" || typeof v === "boolean";
1649
1682
  const line = (v) => String(v).replace(/\s*\n\s*/g, " ");
1650
- const lines = [];
1651
- for (const [k, v] of Object.entries(settings || {})) {
1652
- if (!/^[A-Za-z_][\w-]*$/.test(k)) continue;
1653
- if (plain(v)) lines.push(k + ": " + line(v));
1654
- else if (Array.isArray(v) && v.every(plain)) {
1655
- lines.push(k + ":");
1656
- v.forEach((x) => lines.push(" - " + line(x)));
1683
+ const block = (map, pad) => {
1684
+ const lines2 = [];
1685
+ for (const [k, v] of Object.entries(map || {})) {
1686
+ if (!/^[A-Za-z_][\w-]*$/.test(k)) continue;
1687
+ if (plain(v)) lines2.push(pad + k + ": " + line(v));
1688
+ else if (Array.isArray(v) && v.every(plain)) {
1689
+ lines2.push(pad + k + ":");
1690
+ v.forEach((x) => lines2.push(pad + " - " + line(x)));
1691
+ } else if (v && typeof v === "object" && !Array.isArray(v)) {
1692
+ const inner = block(
1693
+ /** @type {Record<string, unknown>} */
1694
+ v,
1695
+ pad + " "
1696
+ );
1697
+ if (inner.length) lines2.push(pad + k + ":", ...inner);
1698
+ }
1657
1699
  }
1658
- }
1700
+ return lines2;
1701
+ };
1702
+ const lines = block(settings, "");
1659
1703
  return lines.length ? "---\n" + lines.join("\n") + "\n---\n" : "";
1660
1704
  }
1661
1705
  function parseFrontmatter(block) {
@@ -1750,14 +1794,14 @@
1750
1794
  }
1751
1795
  const h = !fence && !f ? line.match(/^\s{0,3}(#{1,6})\s+(.+?)\s*#*\s*$/) : null;
1752
1796
  if (h) {
1753
- let text = h[2];
1797
+ let text2 = h[2];
1754
1798
  let explicitId = null;
1755
- const attr = text.match(/\s*\{#([\w\-:.]+)\}\s*$/);
1799
+ const attr = text2.match(/\s*\{#([\w\-:.]+)\}\s*$/);
1756
1800
  if (attr) {
1757
1801
  explicitId = attr[1];
1758
- text = text.slice(0, attr.index);
1802
+ text2 = text2.slice(0, attr.index);
1759
1803
  }
1760
- cur = { level: h[1].length, title: plainText(text), explicitId, lines: [h[1] + " " + text] };
1804
+ cur = { level: h[1].length, title: plainText(text2), explicitId, lines: [h[1] + " " + text2] };
1761
1805
  sections.push(cur);
1762
1806
  } else (cur || preface).lines.push(line);
1763
1807
  });
@@ -1777,7 +1821,7 @@
1777
1821
  const title = s.title || plainText((body.split("\n").find((l) => l.trim()) || "Intro").slice(0, 48));
1778
1822
  s.id = uniqueId(s.explicitId || slugify(title));
1779
1823
  const { html, err } = render(body);
1780
- add({ id: s.id, parent, title, html, err, camera: cameraDirective(body), mapFirst: mapDirective(body) });
1824
+ add({ id: s.id, parent, title, html, err, camera: cameraDirective(body), mapFirst: mapDirective(body), logo: logoDirective(body) });
1781
1825
  stack.push(s);
1782
1826
  });
1783
1827
  return 0;
@@ -1801,6 +1845,7 @@
1801
1845
  err,
1802
1846
  camera: meta.camera || cameraDirective(body),
1803
1847
  mapFirst: mapDirective(body),
1848
+ logo: meta.logo || logoDirective(body),
1804
1849
  x: meta.x !== void 0 ? parseFloat(meta.x) : null,
1805
1850
  y: meta.y !== void 0 ? parseFloat(meta.y) : null
1806
1851
  });
@@ -1834,6 +1879,7 @@
1834
1879
  err,
1835
1880
  camera: cameraDirective(body),
1836
1881
  mapFirst: mapDirective(body),
1882
+ logo: logoDirective(body),
1837
1883
  autoslide: parseInt(slide.attrs["data-autoslide"], 10) || 0
1838
1884
  });
1839
1885
  }
@@ -1863,6 +1909,57 @@
1863
1909
  }
1864
1910
  }
1865
1911
 
1912
+ // src/core/logo.js
1913
+ var text = (v) => typeof v === "string" ? v.trim() : "";
1914
+ function pair(v) {
1915
+ if (typeof v === "string") return v.trim() ? { light: v.trim(), dark: v.trim() } : null;
1916
+ if (!v || typeof v !== "object" || Array.isArray(v)) return null;
1917
+ const o = (
1918
+ /** @type {Record<string, unknown>} */
1919
+ v
1920
+ );
1921
+ const light = text(o.light), dark = text(o.dark);
1922
+ return light || dark ? { light: light || dark, dark: dark || light } : null;
1923
+ }
1924
+ function deckLogo(setting) {
1925
+ const variants = {};
1926
+ const v = setting && typeof setting === "object" && !Array.isArray(setting) ? (
1927
+ /** @type {Record<string, unknown>} */
1928
+ setting.variants
1929
+ ) : null;
1930
+ if (v && typeof v === "object" && !Array.isArray(v)) {
1931
+ for (const [name, value] of Object.entries(
1932
+ /** @type {Record<string, unknown>} */
1933
+ v
1934
+ )) {
1935
+ const p = pair(value);
1936
+ if (p) variants[name.toLowerCase()] = p;
1937
+ }
1938
+ }
1939
+ return { main: pair(setting), variants };
1940
+ }
1941
+ var isImage = (d) => /[/.:]/.test(d);
1942
+ function slideLogo(logo, directive) {
1943
+ const d = (directive || "").trim();
1944
+ const main = logo.main ? { key: "main", ...logo.main } : null;
1945
+ if (!d || /^(default|main)$/i.test(d)) return main;
1946
+ if (/^(none|off|hide|hidden)$/i.test(d)) return null;
1947
+ const v = logo.variants[d.toLowerCase()];
1948
+ if (v) return { key: "variant:" + d.toLowerCase(), ...v };
1949
+ if (isImage(d)) return { key: "src:" + d, light: d, dark: d };
1950
+ return main;
1951
+ }
1952
+ function deckLogos(logo, directives) {
1953
+ const all = /* @__PURE__ */ new Map();
1954
+ if (logo.main) all.set("main", { key: "main", ...logo.main });
1955
+ for (const [name, p] of Object.entries(logo.variants)) all.set("variant:" + name, { key: "variant:" + name, ...p });
1956
+ directives.forEach((d) => {
1957
+ const c = slideLogo(logo, d);
1958
+ if (c && !all.has(c.key)) all.set(c.key, c);
1959
+ });
1960
+ return [...all.values()];
1961
+ }
1962
+
1866
1963
  // src/core/steps.js
1867
1964
  var CORNERS = ["top-left", "top-right", "bottom-left", "bottom-right"];
1868
1965
  var PLACES = ["left", "right", "top", "bottom"];
@@ -1940,11 +2037,11 @@
1940
2037
  // src/core/source.js
1941
2038
  var RAW = "https://raw.githubusercontent.com/";
1942
2039
  function normalizeSource(input) {
1943
- const text = String(input || "").trim();
1944
- if (!text) return null;
2040
+ const text2 = String(input || "").trim();
2041
+ if (!text2) return null;
1945
2042
  let u;
1946
2043
  try {
1947
- u = new URL(/^[a-z]+:\/\//i.test(text) ? text : "https://" + text);
2044
+ u = new URL(/^[a-z]+:\/\//i.test(text2) ? text2 : "https://" + text2);
1948
2045
  } catch (e) {
1949
2046
  return null;
1950
2047
  }
@@ -2107,8 +2204,8 @@
2107
2204
  }
2108
2205
  }
2109
2206
  }
2110
- function makeCopy(text, origin, { exported = false } = {}) {
2111
- const copy2 = { text, origin, originText: text, exported: exported ? text : null };
2207
+ function makeCopy(text2, origin, { exported = false } = {}) {
2208
+ const copy2 = { text: text2, origin, originText: text2, exported: exported ? text2 : null };
2112
2209
  return copy2;
2113
2210
  }
2114
2211
  function isEdited(copy2) {
@@ -2481,10 +2578,10 @@
2481
2578
  }
2482
2579
 
2483
2580
  // src/core/board.js
2484
- function fingerprint(text) {
2581
+ function fingerprint(text2) {
2485
2582
  let h = 2166136261;
2486
- for (let i = 0; i < text.length; i++) {
2487
- h ^= text.charCodeAt(i);
2583
+ for (let i = 0; i < text2.length; i++) {
2584
+ h ^= text2.charCodeAt(i);
2488
2585
  h = Math.imul(h, 16777619);
2489
2586
  }
2490
2587
  return (h >>> 0).toString(36);
@@ -2655,16 +2752,22 @@
2655
2752
  }
2656
2753
  var isPortrait = () => /^(portrait|vertical|9:16)$/i.test(String(deck.format || "").trim());
2657
2754
  function applyDeckSettings() {
2658
- const name = deck.brand || "", logo = deck.logo || "";
2755
+ const name = typeof deck.brand === "string" ? deck.brand : "";
2659
2756
  const chip = /^chip$/i.test(deck.brand_style || "");
2660
- const html = /^slidetake$/i.test(name) ? '<span class="st-mark">' + LOGO + '<span class="word">Slide<span>take</span></span></span>' : (logo ? '<img alt="" src="' + escapeHtml(logo) + '">' : "") + (name ? "<span" + (chip ? ' class="chip"' : "") + ">" + escapeHtml(name) + "</span>" : "");
2757
+ logoSet = deckLogo(deck.logo);
2758
+ const img = (c, src, mode) => '<img alt="" data-logo="' + escapeHtml(c.key) + '"' + (mode ? ' class="on-' + mode + '"' : "") + ' src="' + escapeHtml(src) + '">';
2759
+ const imgs = deckLogos(logoSet, [...nodes.values()].map((n) => n.logo)).map((c) => c.light === c.dark ? img(c, c.light, "") : img(c, c.light, "light") + img(c, c.dark, "dark")).join("");
2760
+ const html = /^slidetake$/i.test(name) ? '<span class="st-mark">' + LOGO + '<span class="word">Slide<span>take</span></span></span>' : imgs + (name ? "<span" + (chip ? ' class="chip"' : "") + ">" + escapeHtml(name) + "</span>" : "");
2661
2761
  if (brandEl.dataset.html !== html) {
2662
2762
  brandEl.dataset.html = html;
2663
2763
  brandEl.innerHTML = html;
2664
- const img = brandEl.querySelector("img");
2665
- if (img) img.onload = img.onerror = () => refocus(true);
2764
+ brandEl.querySelectorAll("img").forEach((i) => {
2765
+ i.onload = i.onerror = () => {
2766
+ if (!i.hidden) refocus(true);
2767
+ };
2768
+ });
2666
2769
  }
2667
- brandEl.hidden = !html;
2770
+ showSlideLogo(currentId);
2668
2771
  const wasPortrait = document.body.classList.contains("portrait");
2669
2772
  document.body.classList.toggle("portrait", isPortrait());
2670
2773
  if (wasPortrait !== isPortrait()) refocus(true);
@@ -2673,6 +2776,18 @@
2673
2776
  applyColors();
2674
2777
  applyMode();
2675
2778
  }
2779
+ var logoSet = deckLogo("");
2780
+ function showSlideLogo(id) {
2781
+ const n = id ? nodes.get(id) : null;
2782
+ const pick = slideLogo(logoSet, n ? n.logo : null);
2783
+ const key = pick ? pick.key : "";
2784
+ let shown = false;
2785
+ brandEl.querySelectorAll("img[data-logo]").forEach((i) => {
2786
+ i.hidden = i.dataset.logo !== key;
2787
+ shown = shown || !i.hidden;
2788
+ });
2789
+ brandEl.hidden = !shown && !brandEl.querySelector(":scope > span");
2790
+ }
2676
2791
  var COLOR_TOKENS = {
2677
2792
  accent: "--accent",
2678
2793
  accentSoft: "--accent-teal",
@@ -2767,6 +2882,7 @@
2767
2882
  } else save("slidetake:mode", next);
2768
2883
  applyMode();
2769
2884
  if (world.querySelector(".echarts-container, .diagram.d2, .diagram.dot")) rebuild(true);
2885
+ else if (brandEl.querySelector("img.on-light:not([hidden])")) refocus(true);
2770
2886
  }
2771
2887
  function cameraList() {
2772
2888
  const raw = (deck.camera || "").replace(/^\[|\]$/g, "");
@@ -3309,11 +3425,11 @@
3309
3425
  if (parts.length === 1 && (parts[0].matches("figure.media:not(.yt)") || parts[0].matches(".gallery.carousel:not(.diagrams)"))) el.classList.add("card-bleed");
3310
3426
  else if (media.length === 1 && parts.length > 1 && !media[0].matches(".yt")) {
3311
3427
  el.classList.add("card-split", parts.indexOf(media[0]) === 0 ? "media-first" : "media-last");
3312
- const text = document.createElement("div");
3313
- text.className = "split-text";
3314
- parts.filter((c) => c !== media[0]).forEach((c) => text.appendChild(c));
3315
- media[0].after(text);
3316
- if (parts.indexOf(media[0]) !== 0) text.after(media[0]);
3428
+ const text2 = document.createElement("div");
3429
+ text2.className = "split-text";
3430
+ parts.filter((c) => c !== media[0]).forEach((c) => text2.appendChild(c));
3431
+ media[0].after(text2);
3432
+ if (parts.indexOf(media[0]) !== 0) text2.after(media[0]);
3317
3433
  }
3318
3434
  if (body.querySelector(".gallery")) el.classList.add("card-gallery");
3319
3435
  }
@@ -3573,9 +3689,9 @@
3573
3689
  return t;
3574
3690
  }
3575
3691
  function dotTheme() {
3576
- const text = tokenHex("--text"), muted = tokenHex("--text-muted"), accent = tokenHex("--accent");
3692
+ const text2 = tokenHex("--text"), muted = tokenHex("--text-muted"), accent = tokenHex("--accent");
3577
3693
  const font = '"Helvetica,Arial,sans-serif"';
3578
- return ' graph [bgcolor=transparent color="' + muted + '" fontcolor="' + text + '" fontname=' + font + '] node [color="' + accent + '" fontcolor="' + text + '" fontname=' + font + '] edge [color="' + muted + '" fontcolor="' + muted + '" fontname=' + font + "] ";
3694
+ return ' graph [bgcolor=transparent color="' + muted + '" fontcolor="' + text2 + '" fontname=' + font + '] node [color="' + accent + '" fontcolor="' + text2 + '" fontname=' + font + '] edge [color="' + muted + '" fontcolor="' + muted + '" fontname=' + font + "] ";
3579
3695
  }
3580
3696
  var withDotTheme = (code, theme) => code.replace("{", "{" + theme);
3581
3697
  var withD2Defaults = (code) => /d2-config\s*:/.test(code) ? code : "vars: {\n d2-config: {\n layout-engine: elk\n }\n}\n" + code;
@@ -4106,8 +4222,8 @@
4106
4222
  });
4107
4223
  }
4108
4224
  function scramble(el) {
4109
- const text = el.dataset.text || (el.dataset.text = el.textContent);
4110
- const chars = Array.from(text), pool = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789#%&*+=?";
4225
+ const text2 = el.dataset.text || (el.dataset.text = el.textContent);
4226
+ const chars = Array.from(text2), pool = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789#%&*+=?";
4111
4227
  const st = { p: 0 };
4112
4228
  el._scramble = gsap.to(st, {
4113
4229
  p: 1,
@@ -4118,7 +4234,7 @@
4118
4234
  el.textContent = chars.map((c, i) => i < done || /\s/.test(c) ? c : pool[Math.random() * pool.length | 0]).join("");
4119
4235
  },
4120
4236
  onComplete() {
4121
- el.textContent = text;
4237
+ el.textContent = text2;
4122
4238
  }
4123
4239
  });
4124
4240
  }
@@ -4156,6 +4272,7 @@
4156
4272
  const arriving = id !== currentId;
4157
4273
  if (arriving) arrivedFrom = currentId;
4158
4274
  currentId = id;
4275
+ if (arriving) showSlideLogo(id);
4159
4276
  clearTimeout(mapTimer);
4160
4277
  mapTimer = null;
4161
4278
  if (arriving && layoutMode === "focus" && !instant && !reduceMotion) {
@@ -4240,6 +4357,7 @@
4240
4357
  leaveSlide();
4241
4358
  clearTimeout(autoTimer);
4242
4359
  currentId = null;
4360
+ showSlideLogo(null);
4243
4361
  applyPipState();
4244
4362
  updateActivePath();
4245
4363
  updateMinimap();
@@ -4655,10 +4773,10 @@
4655
4773
  }
4656
4774
  }
4657
4775
  }
4658
- function setObsStatus(text, kind, detail) {
4659
- obsStatus.textContent = text;
4776
+ function setObsStatus(text2, kind, detail) {
4777
+ obsStatus.textContent = text2;
4660
4778
  obsStatus.className = kind || "";
4661
- obsStatus.title = detail || text;
4779
+ obsStatus.title = detail || text2;
4662
4780
  const d = document.getElementById("obs-detail");
4663
4781
  d.textContent = detail || "";
4664
4782
  d.hidden = !detail;
@@ -5584,10 +5702,10 @@
5584
5702
  var playlist = null;
5585
5703
  var rvVideo = document.getElementById("rv-video");
5586
5704
  var rvNow = document.getElementById("rv-now");
5587
- function say(text, { warn = false, html = "", title = "" } = {}) {
5705
+ function say(text2, { warn = false, html = "", title = "" } = {}) {
5588
5706
  rvNow.classList.toggle("warn", warn);
5589
5707
  if (html) rvNow.innerHTML = html;
5590
- else rvNow.textContent = text;
5708
+ else rvNow.textContent = text2;
5591
5709
  rvNow.title = title || rvNow.textContent;
5592
5710
  const again = document.getElementById("rv-save-again");
5593
5711
  if (again) again.onclick = () => downloadVideo(true);
@@ -5668,9 +5786,9 @@
5668
5786
  btn.disabled = ch.lines.length < 3;
5669
5787
  btn.title = ch.lines.length < 3 ? "YouTube needs at least three chapters of 10 seconds or more" : "Copies the " + ch.lines.length + " chapters, to paste into the YouTube description";
5670
5788
  }
5671
- function copyWith(btn, text) {
5789
+ function copyWith(btn, text2) {
5672
5790
  const label = btn.dataset.label || (btn.dataset.label = btn.textContent);
5673
- (navigator.clipboard ? navigator.clipboard.writeText(text) : Promise.reject()).catch(() => {
5791
+ (navigator.clipboard ? navigator.clipboard.writeText(text2) : Promise.reject()).catch(() => {
5674
5792
  });
5675
5793
  btn.textContent = "\u2713 Copied";
5676
5794
  clearTimeout(+btn.dataset.timer);
@@ -6547,17 +6665,17 @@
6547
6665
  var pipMsg = document.getElementById("pip-msg");
6548
6666
  var pipMsgTimer = null;
6549
6667
  var pipLabel = pipEl.querySelector("span");
6550
- function showPipMsg(text, sticky) {
6668
+ function showPipMsg(text2, sticky) {
6551
6669
  if (rec.active) return;
6552
6670
  clearTimeout(pipMsgTimer);
6553
6671
  if (!pipEl.hidden && !pipEl.classList.contains("live")) {
6554
6672
  pipMsg.classList.remove("show");
6555
- pipLabel.textContent = text;
6673
+ pipLabel.textContent = text2;
6556
6674
  pipEl.classList.add("msg");
6557
6675
  if (!sticky) pipMsgTimer = setTimeout(resetPipLabel, 9e3);
6558
6676
  return;
6559
6677
  }
6560
- pipMsg.textContent = text;
6678
+ pipMsg.textContent = text2;
6561
6679
  pipMsg.classList.add("show");
6562
6680
  if (!sticky) pipMsgTimer = setTimeout(() => pipMsg.classList.remove("show"), 9e3);
6563
6681
  }
@@ -6782,8 +6900,8 @@
6782
6900
  toastEl.setAttribute("role", "status");
6783
6901
  document.body.appendChild(toastEl);
6784
6902
  var toastTimer = null;
6785
- function showToast(text, ms) {
6786
- toastEl.textContent = text;
6903
+ function showToast(text2, ms) {
6904
+ toastEl.textContent = text2;
6787
6905
  toastEl.classList.add("show");
6788
6906
  clearTimeout(toastTimer);
6789
6907
  toastTimer = setTimeout(() => toastEl.classList.remove("show"), ms || 2500);
@@ -6948,17 +7066,17 @@
6948
7066
  function isLocalDeck() {
6949
7067
  return !!(LOCAL && view && view.kind === "source" && view.source.kind === "url" && new URL(view.source.url, location.href).pathname === LOCAL.deck);
6950
7068
  }
6951
- function saveLocal(text) {
6952
- fetch(LOCAL.save, { method: "PUT", body: text }).catch(() => showToast("Could not save " + LOCAL.file + ": is npx slidetake still running?", 6e3));
7069
+ function saveLocal(text2) {
7070
+ fetch(LOCAL.save, { method: "PUT", body: text2 }).catch(() => showToast("Could not save " + LOCAL.file + ": is npx slidetake still running?", 6e3));
6953
7071
  }
6954
7072
  if (LOCAL && window.EventSource) {
6955
7073
  new EventSource(LOCAL.events).onmessage = async (e) => {
6956
7074
  if (!isLocalDeck()) return;
6957
7075
  const name = (JSON.parse(e.data).file || "").replace(/\\/g, "/");
6958
7076
  if (name === LOCAL.file) {
6959
- const text = await (await fetch(LOCAL.deck, { cache: "no-store" })).text();
6960
- if (text === editor.value) return;
6961
- editor.value = view.text = text;
7077
+ const text2 = await (await fetch(LOCAL.deck, { cache: "no-store" })).text();
7078
+ if (text2 === editor.value) return;
7079
+ editor.value = view.text = text2;
6962
7080
  rebuild(true);
6963
7081
  return;
6964
7082
  }
@@ -7015,18 +7133,18 @@
7015
7133
  }
7016
7134
  if (route.page === "share") {
7017
7135
  try {
7018
- const text = await decodeDeck(route.data);
7019
- view = { kind: "share", data: route.data, text };
7020
- return text;
7136
+ const text2 = await decodeDeck(route.data);
7137
+ view = { kind: "share", data: route.data, text: text2 };
7138
+ return text2;
7021
7139
  } catch (e) {
7022
7140
  showToast("This link's deck is damaged or cut short, so it could not be opened.", 6e3);
7023
7141
  return showHome();
7024
7142
  }
7025
7143
  }
7026
7144
  try {
7027
- const text = await fetchSource(route.source);
7028
- view = { kind: "source", source: route.source, text };
7029
- return text;
7145
+ const text2 = await fetchSource(route.source);
7146
+ view = { kind: "source", source: route.source, text: text2 };
7147
+ return text2;
7030
7148
  } catch (e) {
7031
7149
  statusErr.textContent = "Could not load the deck (" + e.message + ")";
7032
7150
  showToast("Could not load " + originLabel(route.source) + ": " + e.message, 6e3);
@@ -7034,8 +7152,8 @@
7034
7152
  }
7035
7153
  }
7036
7154
  if (params.get("edit") === "1" || route.page === "edit" && copy && params.get("edit") !== "0") toggleEditor();
7037
- loadInitialDeck().then((text) => {
7038
- editor.value = text;
7155
+ loadInitialDeck().then((text2) => {
7156
+ editor.value = text2;
7039
7157
  updateDocState();
7040
7158
  parseDeck2(editor.value);
7041
7159
  build();