From 5a7824b2b86b643a87910415b60dea4e84a267ca Mon Sep 17 00:00:00 2001
From: Wayne Sutton
Date: Sun, 21 Dec 2025 18:47:17 -0800
Subject: [PATCH] fixed: home link strong css, added more markdown examples
---
content/blog/markdown-with-code-examples.md | 234 ++++++++++++++++++-
content/blog/setup-guide.md | 2 +-
public/raw/markdown-with-code-examples.md | 236 +++++++++++++++++++-
public/raw/setup-guide.md | 2 +-
src/pages/Home.tsx | 10 +-
src/styles/global.css | 14 ++
6 files changed, 484 insertions(+), 14 deletions(-)
diff --git a/content/blog/markdown-with-code-examples.md b/content/blog/markdown-with-code-examples.md
index 082b386..799afb4 100644
--- a/content/blog/markdown-with-code-examples.md
+++ b/content/blog/markdown-with-code-examples.md
@@ -1,6 +1,6 @@
---
title: "Writing Markdown with Code Examples"
-description: "A sample post showing how to write markdown with syntax-highlighted code blocks, tables, and more."
+description: "A complete reference for writing markdown with links, code blocks, images, tables, and formatting. Copy examples directly into your posts."
date: "2025-12-14"
slug: "markdown-with-code-examples"
published: true
@@ -152,9 +152,67 @@ Reference files with inline code: `convex/schema.ts`, `src/pages/Home.tsx`.
## Links
-External links open in new tabs: [Convex Docs](https://docs.convex.dev)
+Markdown supports several link formats.
-Internal links: [Setup Guide](/setup-guide)
+### Basic links
+
+```markdown
+[Link text](https://example.com)
+```
+
+Result: [Convex Docs](https://docs.convex.dev)
+
+### Internal links
+
+Link to other posts and pages using the slug:
+
+```markdown
+[Setup Guide](/setup-guide)
+[About](/about)
+[Changelog](/changelog)
+```
+
+Result: [Setup Guide](/setup-guide)
+
+### Links with titles
+
+Add a title that appears on hover:
+
+```markdown
+[Convex](https://convex.dev "Real-time backend")
+```
+
+Result: [Convex](https://convex.dev "Real-time backend")
+
+### Reference-style links
+
+For cleaner markdown when using the same link multiple times:
+
+```markdown
+Read the [Convex docs][convex] or check the [API reference][convex].
+
+[convex]: https://docs.convex.dev
+```
+
+### Autolinks
+
+URLs and email addresses in angle brackets become clickable:
+
+```markdown
+
+
+```
+
+### Linking to headings
+
+Link to sections within the same page using the heading ID:
+
+```markdown
+[Jump to Code Blocks](#code-blocks)
+[See the Tips section](#tips)
+```
+
+Result: [Jump to Code Blocks](#code-blocks)
## Emphasis
@@ -166,12 +224,115 @@ Use **bold** for strong emphasis and _italics_ for lighter emphasis.
## Images
-Place images in `public/` and reference them:
+Place images in `public/images/` and reference them with absolute paths.
+
+### Basic image
```markdown
-
+
```
+### Image with title
+
+```markdown
+
+```
+
+### Featured images in frontmatter
+
+Add an image to your post frontmatter for card views and social sharing:
+
+```yaml
+---
+image: "/images/my-post-image.png"
+---
+```
+
+The image appears as a thumbnail in card view and as the Open Graph image when shared.
+
+### Image sizing
+
+For best results:
+
+- Blog images: 1200x630px (standard OG size)
+- Author avatars: 200x200px (displays as circle)
+- Card thumbnails: Square images work best (auto-cropped to center)
+
+## Nested lists
+
+Indent with two spaces for nested items:
+
+```markdown
+- Parent item
+ - Child item
+ - Another child
+ - Grandchild item
+- Back to parent level
+```
+
+Result:
+
+- Parent item
+ - Child item
+ - Another child
+ - Grandchild item
+- Back to parent level
+
+## Mixed list types
+
+Combine ordered and unordered lists:
+
+```markdown
+1. First step
+ - Sub-point A
+ - Sub-point B
+2. Second step
+ - Another sub-point
+```
+
+Result:
+
+1. First step
+ - Sub-point A
+ - Sub-point B
+2. Second step
+ - Another sub-point
+
+## Escaping characters
+
+Use backslash to display literal markdown characters:
+
+```markdown
+\*not italic\*
+\`not code\`
+\[not a link\]
+```
+
+Result: \*not italic\* and \`not code\`
+
+## Line breaks
+
+End a line with two spaces for a soft break.
+Or use a blank line for a new paragraph.
+
+```markdown
+First line with two trailing spaces
+Second line (soft break)
+
+New paragraph (blank line above)
+```
+
+## Combining emphasis
+
+Stack formatting for combined effects:
+
+```markdown
+**_bold and italic_**
+`code with **no bold** inside`
+```
+
+Result: **_bold and italic_**
+
## File Structure Reference
```
@@ -188,3 +349,66 @@ content/blog/
2. Set `published: false` for drafts
3. Run `npm run sync` after adding posts (or `npm run sync:prod` for production)
4. Use descriptive titles for SEO
+
+## Strikethrough
+
+Use double tildes for strikethrough text:
+
+```markdown
+~~deleted text~~
+```
+
+Result: ~~deleted text~~
+
+## Code in headings
+
+You can include inline code in headings:
+
+```markdown
+## Using the `useQuery` hook
+```
+
+## Tables with alignment
+
+Control column alignment with colons:
+
+```markdown
+| Left | Center | Right |
+| :--- | :----: | ----: |
+| L | C | R |
+```
+
+| Left | Center | Right |
+| :--- | :----: | ----: |
+| L | C | R |
+
+## Multi-line code in lists
+
+Indent code blocks with 4 spaces inside list items:
+
+````markdown
+1. First step:
+
+ ```bash
+ npm install
+ ```
+
+2. Second step:
+
+ ```bash
+ npm run dev
+ ```
+````
+
+## Quick reference
+
+| Syntax | Result |
+| ------------------- | --------------------- |
+| `**bold**` | **bold** |
+| `_italic_` | _italic_ |
+| `~~strike~~` | ~~strike~~ |
+| `` `code` `` | `code` |
+| `[link](url)` | [link](https://x.com) |
+| `` | image |
+| `> quote` | blockquote |
+| `---` | horizontal rule |
diff --git a/content/blog/setup-guide.md b/content/blog/setup-guide.md
index 69c0498..8854fc1 100644
--- a/content/blog/setup-guide.md
+++ b/content/blog/setup-guide.md
@@ -118,7 +118,7 @@ Run the Convex development command:
npx convex dev
```
-This will:
+This will
1. Prompt you to log in to Convex (opens browser)
2. Ask you to create a new project or select an existing one
diff --git a/public/raw/markdown-with-code-examples.md b/public/raw/markdown-with-code-examples.md
index 80564a4..0a5d817 100644
--- a/public/raw/markdown-with-code-examples.md
+++ b/public/raw/markdown-with-code-examples.md
@@ -1,6 +1,6 @@
# Writing Markdown with Code Examples
-> A sample post showing how to write markdown with syntax-highlighted code blocks, tables, and more.
+> A complete reference for writing markdown with links, code blocks, images, tables, and formatting. Copy examples directly into your posts.
---
Type: post
@@ -148,9 +148,67 @@ Reference files with inline code: `convex/schema.ts`, `src/pages/Home.tsx`.
## Links
-External links open in new tabs: [Convex Docs](https://docs.convex.dev)
+Markdown supports several link formats.
-Internal links: [Setup Guide](/setup-guide)
+### Basic links
+
+```markdown
+[Link text](https://example.com)
+```
+
+Result: [Convex Docs](https://docs.convex.dev)
+
+### Internal links
+
+Link to other posts and pages using the slug:
+
+```markdown
+[Setup Guide](/setup-guide)
+[About](/about)
+[Changelog](/changelog)
+```
+
+Result: [Setup Guide](/setup-guide)
+
+### Links with titles
+
+Add a title that appears on hover:
+
+```markdown
+[Convex](https://convex.dev "Real-time backend")
+```
+
+Result: [Convex](https://convex.dev "Real-time backend")
+
+### Reference-style links
+
+For cleaner markdown when using the same link multiple times:
+
+```markdown
+Read the [Convex docs][convex] or check the [API reference][convex].
+
+[convex]: https://docs.convex.dev
+```
+
+### Autolinks
+
+URLs and email addresses in angle brackets become clickable:
+
+```markdown
+
+
+```
+
+### Linking to headings
+
+Link to sections within the same page using the heading ID:
+
+```markdown
+[Jump to Code Blocks](#code-blocks)
+[See the Tips section](#tips)
+```
+
+Result: [Jump to Code Blocks](#code-blocks)
## Emphasis
@@ -162,12 +220,115 @@ Use **bold** for strong emphasis and _italics_ for lighter emphasis.
## Images
-Place images in `public/` and reference them:
+Place images in `public/images/` and reference them with absolute paths.
+
+### Basic image
```markdown
-
+
```
+### Image with title
+
+```markdown
+
+```
+
+### Featured images in frontmatter
+
+Add an image to your post frontmatter for card views and social sharing:
+
+```yaml
+---
+image: "/images/my-post-image.png"
+---
+```
+
+The image appears as a thumbnail in card view and as the Open Graph image when shared.
+
+### Image sizing
+
+For best results:
+
+- Blog images: 1200x630px (standard OG size)
+- Author avatars: 200x200px (displays as circle)
+- Card thumbnails: Square images work best (auto-cropped to center)
+
+## Nested lists
+
+Indent with two spaces for nested items:
+
+```markdown
+- Parent item
+ - Child item
+ - Another child
+ - Grandchild item
+- Back to parent level
+```
+
+Result:
+
+- Parent item
+ - Child item
+ - Another child
+ - Grandchild item
+- Back to parent level
+
+## Mixed list types
+
+Combine ordered and unordered lists:
+
+```markdown
+1. First step
+ - Sub-point A
+ - Sub-point B
+2. Second step
+ - Another sub-point
+```
+
+Result:
+
+1. First step
+ - Sub-point A
+ - Sub-point B
+2. Second step
+ - Another sub-point
+
+## Escaping characters
+
+Use backslash to display literal markdown characters:
+
+```markdown
+\*not italic\*
+\`not code\`
+\[not a link\]
+```
+
+Result: \*not italic\* and \`not code\`
+
+## Line breaks
+
+End a line with two spaces for a soft break.
+Or use a blank line for a new paragraph.
+
+```markdown
+First line with two trailing spaces
+Second line (soft break)
+
+New paragraph (blank line above)
+```
+
+## Combining emphasis
+
+Stack formatting for combined effects:
+
+```markdown
+**_bold and italic_**
+`code with **no bold** inside`
+```
+
+Result: **_bold and italic_**
+
## File Structure Reference
```
@@ -183,4 +344,67 @@ content/blog/
1. Keep slugs URL-friendly (lowercase, hyphens)
2. Set `published: false` for drafts
3. Run `npm run sync` after adding posts (or `npm run sync:prod` for production)
-4. Use descriptive titles for SEO
\ No newline at end of file
+4. Use descriptive titles for SEO
+
+## Strikethrough
+
+Use double tildes for strikethrough text:
+
+```markdown
+~~deleted text~~
+```
+
+Result: ~~deleted text~~
+
+## Code in headings
+
+You can include inline code in headings:
+
+```markdown
+## Using the `useQuery` hook
+```
+
+## Tables with alignment
+
+Control column alignment with colons:
+
+```markdown
+| Left | Center | Right |
+| :--- | :----: | ----: |
+| L | C | R |
+```
+
+| Left | Center | Right |
+| :--- | :----: | ----: |
+| L | C | R |
+
+## Multi-line code in lists
+
+Indent code blocks with 4 spaces inside list items:
+
+````markdown
+1. First step:
+
+ ```bash
+ npm install
+ ```
+
+2. Second step:
+
+ ```bash
+ npm run dev
+ ```
+````
+
+## Quick reference
+
+| Syntax | Result |
+| ------------------- | --------------------- |
+| `**bold**` | **bold** |
+| `_italic_` | _italic_ |
+| `~~strike~~` | ~~strike~~ |
+| `` `code` `` | `code` |
+| `[link](url)` | [link](https://x.com) |
+| `` | image |
+| `> quote` | blockquote |
+| `---` | horizontal rule |
\ No newline at end of file
diff --git a/public/raw/setup-guide.md b/public/raw/setup-guide.md
index 8340428..17b928b 100644
--- a/public/raw/setup-guide.md
+++ b/public/raw/setup-guide.md
@@ -113,7 +113,7 @@ Run the Convex development command:
npx convex dev
```
-This will:
+This will
1. Prompt you to log in to Convex (opens browser)
2. Ask you to create a new project or select an existing one
diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx
index 435f8da..7a09db7 100644
--- a/src/pages/Home.tsx
+++ b/src/pages/Home.tsx
@@ -97,8 +97,16 @@ export default function Home() {
An open-source publishing framework for AI agents and developers.
{" "}
+ Write markdown, sync from the terminal.
- Write markdown, sync from the terminal.
+
+ Fork it
+
+ , customize it, ship it.
{siteConfig.bio}
diff --git a/src/styles/global.css b/src/styles/global.css
index cc63eba..3e1d843 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -402,6 +402,20 @@ body {
line-height: 1.7;
}
+/* Links inside home intro and bio sections */
+.home-intro a,
+.home-bio a {
+ color: var(--link-color);
+ text-decoration: underline;
+ text-underline-offset: 3px;
+ transition: color 0.2s ease;
+}
+
+.home-intro a:hover,
+.home-bio a:hover {
+ color: var(--link-hover);
+}
+
.home-featured {
margin: 24px 0;
}