venture mdecks: the pitch deck, rewritten; links can't leave the href

This commit is contained in:
teahubxyz committed 2026-10-11 17:46:53 -07:00
1 parent e09dc1c0dc
commit 69f4f3bce5
1 file changed
+34 -36
+34 -36
View File
@@ -11,58 +11,56 @@
var SAMPLE = [
"# .mdeck",
"## Plain text in, clean slides out",
"## Slides from plain text",
"",
"- Type markdown-ish slides in the editor",
"- Live preview renders on the right",
"- Navigate with arrow keys or swipe",
"- Copy as self-contained HTML",
"This deck is the demo, and its source is in the editor: change a word there and watch this slide change.",
"",
"---",
"# Why",
"## A deck shouldn't take longer than the meeting",
"",
"- Dragging boxes isn't the job",
"- Your words are the job",
"- So type them, and let the slides follow",
"",
"---",
"# How it works",
"",
"- `# Title` and `## Subtitle`",
"- `- bullet` points or `* bullet`",
"- `#` for a title, `##` for a subtitle",
"- `-` for a point like this one",
"- **bold**, *italic* and `code` work inline",
"- `---` on its own line starts a new slide",
"- Inline **bold**, *italic*, and `code`",
"- Plain lines become paragraphs",
"",
"Any other line is a paragraph, like this one.",
"",
"---",
"# Free tier ($0)",
"# Free, right now",
"",
"- Full plain-text editor",
"- Live navigable preview",
"- Arrow keys + progress bar",
"- One-click HTML export",
"- Nothing saved or sent",
"",
"---",
"# Pro tier ($5/mo)",
"",
"- Saved decks",
"- Themes",
"- Speaker notes",
"- PDF export",
"- Shareable links",
"- This editor and the live preview",
"- Arrow keys or swipe to present",
"- **Copy deck as HTML**: one file that opens in any browser",
"- Nothing is saved or sent: your deck stays in this tab",
"",
"---",
"# Who it's for",
"",
"- Weekly status updates",
"- Sprint demos",
"- Lunch talks",
"- Class notes",
"- Anyone who'd rather type than drag boxes",
"Anyone who'd rather type a deck than drag one: the weekly update, the demo, the talk, the class notes.",
"",
"---",
"# Try it now",
"# Pro, if you want more",
"",
"Edit this deck to try the syntax:",
"- Change this bullet",
"- Add another slide with `---`",
"- Make text **bold** or *italic*",
"- Saved decks and themes",
"- Speaker notes",
"- PDF export and a shareable link",
"- **$5/mo**, the founding price",
"",
"[Join early access](https://github.com/teahubxyz/time/issues/new?template=early-access.yml&title=Early+access%3A+.mdeck&venture=mdecks&plan=Pro)"
"Pro isn't built yet, and nothing is charged today.",
"",
"---",
"# Your turn",
"",
"Select everything in the editor, delete it, and type your own.",
"Or [get early access to Pro](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) {
@@ -75,7 +73,7 @@
out = out.replace(/\*([^*]+)\*/g, "<em>$1</em>");
out = out.replace(/`([^`]+)`/g, "<code>$1</code>");
// Handle links - only http and https
out = out.replace(/\[([^\]]+)\]\((https?:\/\/[^)]+)\)/g, '<a href="$2" target="_blank" rel="noopener">$1</a>');
out = out.replace(/\[([^\]]+)\]\((https?:\/\/[^)\s\"'<>]+)\)/g, '<a href="$2" target="_blank" rel="noopener">$1</a>');
return out;
}