diff --git a/ventures/mdecks/app.js b/ventures/mdecks/app.js
index b797c32..f3191f8 100644
--- a/ventures/mdecks/app.js
+++ b/ventures/mdecks/app.js
@@ -10,39 +10,59 @@
var copyBtn = document.getElementById("copy");
var SAMPLE = [
- "# Sprint 14 demo",
- "## Platform team ยท Friday status",
+ "# .mdeck",
+ "## Plain text in, clean slides out",
"",
- "- What shipped, what slipped, what is next",
- "- Typed in plain text; typeset by MDecks",
+ "- Type markdown-ish slides in the editor",
+ "- Live preview renders on the right",
+ "- Navigate with arrow keys or swipe",
+ "- Copy as self-contained HTML",
"",
"---",
- "# Shipped this sprint",
+ "# How it works",
"",
- "- Migrated the billing service off the legacy queue",
- "- Cut p99 API latency from **840ms** to **310ms**",
- "- Shipped the new audit log behind a flag",
+ "- `# Title` and `## Subtitle`",
+ "- `- bullet` points or `* bullet`",
+ "- `---` on its own line starts a new slide",
+ "- Inline **bold**, *italic*, and `code`",
+ "- Plain lines become paragraphs",
"",
"---",
- "# What slipped",
+ "# Free tier ($0)",
"",
- "The SSO rollout moved to next sprint.",
- "",
- "- Blocked on the identity provider's sandbox",
- "- Mitigation: contract tests already written",
+ "- Full plain-text editor",
+ "- Live navigable preview",
+ "- Arrow keys + progress bar",
+ "- One-click HTML export",
+ "- Nothing saved or sent",
"",
"---",
- "# Next sprint",
+ "# Pro tier ($5/mo)",
"",
- "- Finish SSO rollout",
- "- Start the `events v2` schema",
- "- *One* stretch goal, chosen Monday",
+ "- Saved decks",
+ "- Themes",
+ "- Speaker notes",
+ "- PDF export",
+ "- Shareable links",
"",
"---",
- "# That's the update",
- "## Questions?",
+ "# Who it's for",
"",
- "This deck was copied out of MDecks as one HTML file โ arrow keys to present."
+ "- Weekly status updates",
+ "- Sprint demos",
+ "- Lunch talks",
+ "- Class notes",
+ "- Anyone who'd rather type than drag boxes",
+ "",
+ "---",
+ "# Try it now",
+ "",
+ "Edit this deck to try the syntax:",
+ "- Change this bullet",
+ "- Add another slide with `---`",
+ "- Make text **bold** or *italic*",
+ "",
+ "[Join early access](https://github.com/teahubxyz/time/issues/new?template=early-access.yml&title=Early+access%3A+.mdeck&venture=mdecks&plan=Pro)"
].join("\n");
function esc(s) {
@@ -54,6 +74,8 @@
out = out.replace(/\*\*([^*]+)\*\*/g, "$1");
out = out.replace(/\*([^*]+)\*/g, "$1");
out = out.replace(/`([^`]+)`/g, "$1");
+ // Handle links - only http and https
+ out = out.replace(/\[([^\]]+)\]\((https?:\/\/[^)]+)\)/g, '$1');
return out;
}
@@ -95,7 +117,7 @@
html += "
" + inline(t) + "
"; + html += "" + inline(line) + "
"; } } if (inList) html += ""; @@ -159,7 +181,7 @@ }).join("\n"); return "\n\n\n\n" + "\n" + - "