# Craig Hart - Full Writings & Knowledge Base
> Author: Craig Hart (Just a human sitting in front of glowing glass.)
> Website: https://craigary.net
> Canonical: https://craigary.net/llms-full.txt
This document contains the complete collection of long-form articles, design engineering notes, and technical essays published by Craig Hart.
---
## Notion 渲染测试文章
- Date: 2026-03-17
- URL: https://craigary.net/writings/notion-rendering-test-article
> [!NOTE]
> **说明**
>
> - 这是一篇用于验证网站对 Notion 内容渲染能力的测试文章。
> - 内容会故意覆盖多种块类型、富文本样式、嵌套结构与媒体元素。
> - 如果某一部分显示异常,通常可以快速定位到对应的渲染规则。
## 1. 标题层级测试
这一段用于测试普通段落、**粗体**、_斜体_、~~删除线~~、下划线、`行内代码`、以及 [链接](https://example.com) 的混合渲染效果。
### 1.1 二级标题下的正文
这是一段较长的正文示例。它同时包含中文、English、12345、以及一些常见符号,用来观察字重、字号、行高、字距、自动换行与中英文混排时的表现是否稳定。
#### 1.1.1 四级标题
你还可以检查以下细节:
- 标题前后的留白是否一致
- 不同标题层级是否有清晰的视觉区分
- 标题锚点与目录是否工作正常
---
## 2. 列表测试
### 2.1 无序列表
- 第一层无序列表
- 第二层无序列表
- 第三层无序列表
- 包含 **粗体文本** 的列表项
- 包含 _斜体文本_ 的列表项
- 包含 `inline code` 的列表项
- 包含 [外部链接](https://example.com) 的列表项
### 2.2 有序列表
1. 第一项
2. 第二项
1. 第二项下的嵌套有序列表
2. 再来一项
3. 第三项,内容稍微长一点,用来测试自动换行后编号与文本的对齐表现。
### 2.3 混合列表
1. 先从有序列表开始
- 再嵌套无序列表
- 第二个子项
2. 再回到有序列表
### 2.4 To-do 列表
- [ ] 未完成任务项
- [x] 已完成任务项
- [ ] 包含 **强调文本** 的待办项
---
## 3. 引用与提示块
> 这是一段引用文本,用于测试 blockquote 的边框、缩进、颜色与排版。
> 这是一个多行引用示例。
> 第二行用于测试同一引用块中的换行。
> 第三行用于测试移动端的表现。
> [!TIP]
> **提示**
>
> 这里适合测试 callout 的图标、背景色、内边距,以及其中嵌套列表时的渲染是否正确。
>
> - 子项 A
> - 子项 B
> [!WARNING]
> **风险提示**
>
> 如果你的站点对 Notion block 做了二次样式覆盖,这一块通常最容易暴露出间距与颜色冲突问题。
---
## 4. 折叠与层级结构
- 点击展开:查看折叠内容测试
这里是折叠块中的正文。
- 折叠块中的列表项 1
- 折叠块中的列表项 2
- 嵌套子项
### 可折叠标题 1
这是一段放在 toggle heading 下面的内容。
- 可以继续包含列表
- 也可以放普通文本
### 可折叠标题 2
这是一段放在 toggle heading 下面的内容。
- 可以继续包含列表
- 也可以放普通文本
#### 可折叠标题 3
这是一段放在 toggle heading 下面的内容。
- 可以继续包含列表
- 也可以放普通文本
---
## 5. 表格测试
| 字段 | 示例值 | 说明 |
| ---- | ------------------------------ | -------------------------- |
| 标题 | Notion 渲染测试文章 | 测试表头、单元格边框与对齐 |
| 样式 | **粗体** / _斜体_ / `代码` | 测试单元格中的富文本 |
| 链接 | [Example](https://example.com) | 测试链接样式与点击区域 |
---
## 6. 分栏测试
### 左栏
- 列表项 A
- 列表项 B
- 列表项 C
### 右栏
这一栏用于测试多列布局在桌面端与移动端的折叠表现。
---
## 7. 代码与技术内容测试
### 7.1 JavaScript 代码块
```jsx
export function renderTitle(title) {
return `
${title}
`
}
console.log(renderTitle('Hello, Notion'))
```
### 7.2 HTML 代码块
```html
Heading
```
### 7.3 CSS 代码块
```css
.notion-callout {
border-radius: 16px;
padding: 1rem 1.25rem;
background: linear-gradient(180deg, #fff, #f7f7f7);
}
```
### 7.4 Mermaid 图表
```mermaid
flowchart TD
A["Notion 页面"] --> B["内容解析"]
B --> C["Markdown / AST 转换"]
C --> D["网站前端渲染"]
D --> E["最终页面输出"]
```
### 7.5 数学公式
当 $a^2 + b^2 = c^2$ 时,可以观察行内公式的基线与字号表现。
$$
\int_0^1 x^2 \, dx = \frac{1}{3}
$$
---
## 8. 图片与媒体测试
### 8.1 图片
::wide

::
Golden Gate Bridge - Render Test
图片下方这一段文字用于测试图片与正文之间的间距,以及图片 caption 的展示策略是否符合预期。

### 8.2 视频
[What is Notion?](https://www.youtube.com/watch?v=oTahLEX3NXo)
### 8.3 音频
[Beach Sounds](https://upload.wikimedia.org/wikipedia/commons/0/04/Beach_sounds_South_Carolina.ogg)
---
## 9. 特殊排版细节测试
这一段包含一些容易出问题的内容:
- 中英文混排:Notion、Next.js、MDX、React Server Components
- 数字与单位:16 px、1.5 rem、100%
- 标点与引号:「直角引号」、「括号(parentheses)」、破折号 —— 以及冒号:分号;
- 转义字符:* [ ] { } < >
### 9.1 行内换行测试
第一行
第二行
第三行
---
## 10. 结尾测试
如果你能完整看到以下内容,说明基础渲染大概率已经打通:
1. 标题层级正常
2. 列表缩进正常
3. 表格边框正常
4. 图片与媒体可见
5. 代码高亮正常
6. 折叠块可交互
7. 分栏在不同尺寸下表现合理
> [!TIP]
> **结论**
>
> 这篇文章适合作为你的网站渲染回归测试样本。每次更新解析器、样式系统或内容管线后,都可以用它快速做一次人工检查。
---
## Building an AI Hacker News Podcast that Actually Sounds Like Human
- Date: 2026-03-16
- URL: https://craigary.net/writings/building-an-ai-hacker-news-podcast-that-actually-sounds-human
I recently finally built something I had wanted for a while: an AI-powered Hacker News podcast that doesn't suffer from that telltale "AI uncanny valley" sound.
This is not a brand-new idea. [MianTiao](https://hacker-podcast.agi.li/) has already launched a Hacker News podcast, and tools like NotebookLM can generate podcast-style conversations for free. But after listening to a lot of AI-generated podcasts, I kept feeling that something was missing.
The biggest problem is that they do not sound human enough. The conversation often turns into a rigid Q&A, or into the kind of neat, overly helpful exchange that only an AI would produce. Real podcast conversations wander. People interrupt themselves. They jump between ideas. They have personality.
Another issue is that many podcasts today feel like they are trying too hard to teach you something. At least for me, that misses the point. Sometimes I do not want a podcast that demands attention or asks me to learn. Sometimes I just want some light background audio while catching up on the news.
There was also a more personal reason behind this project. I had been using an app called 「一卒听库」, which offers free AI-generated audiobooks. The content quality is genuinely high, but the listening experience still feels flat because it does not use music or transitions between chapters. That made me wonder whether I could build an AI audio podcast from other sources instead, one with better rhythm, pacing, and an overall better listening experience. In many ways, this project began as a way to test whether that instinct was right.
Once I sat down to code, I quickly realized that simply scraping a lot of information and throwing it at a model does not work. Even with complicated prompts, the model tends to focus on completing the task mechanically instead of producing a natural conversation. Massive context windows often lead to "model drift," where the output loses focus and strays from the desired format.
So I redesigned the entire workflow for generating each episode:
1. Fetch stories from Hacker News, but only collect the title, description, basic content, and comments. I do not fetch every story in full detail.
2. Use AI to process each story and generate a topic category, a discussion-worthiness score, a short summary, the key viewpoints in the comments, and a few standout remarks.
3. Feed those results into another model to create a “blueprint” for the episode. It selects the 5 or 6 most interesting stories and generates the background, tone, and structure for each segment. Each segment also gets its own discussion style, whether that means a deeper dive, idea wandering, playful disagreement, roasting, or celebration.
4. Use that blueprint to generate the intro and outro, then write each segment as its own dialogue. At that stage, the model receives the full story details, comments, viewpoints, and article context it needs.
5. Stitch everything together into a full script, generate the voices with Azure TTS, and use ffmpeg to combine the lines, pauses, pacing, and background music so the final result feels closer to a complete podcast.
One thing I learned is that the prompt has to stay relatively lean. If the instructions are too strict or too detailed, the model starts copying the examples too literally. That is how you end up with every host saying the same things every episode, like their coffee getting cold or the upstairs neighbors renovating again. After several rounds of iteration, the final output feels much more human-alike and much less like a stiff interview.
I deliberately chose a mix of specialized models to keep costs near zero and maintain stability:
| Model | Use |
| ------------------ | ---------------------------------------------------------------------------------- |
| gpt-oss-120b | From Cerebras. Fast and stable. Used for blueprint generation and cover prompts. |
| Z-Image-Turbo | Used for cover generation. Nano Banana does not have a stable API yet. |
| LongCat-Flash-Chat | A free model from Meituan, Used to summarize story information. Free and reliable. |
| mistral-3-large | Used for dialogue generation. |
As you can see, I did not use the most popular models for this project. Since I built the whole thing by myself and it’s not a commercial project, I aimed for a “near-zero” cost architecture. Third-party API aggregators are still not stable enough, and the structured output they provide often breaks in annoying ways.
The whole workflow now runs daily on GitHub Actions. The generated data is stored in Cloudflare R2 and Workers KV, and the generated Markdown is also committed to the repository so it can update the Astro podcast site.
If you want to listen or take a look:
- Podcast site: [https://hn.craigary.net](https://hn.craigary.net)
- GitHub repo: [GitHub - craigary/hn-podcast-project](https://github.com/craigary/hn-podcast-project)
### Next steps
- Tone the swearing back in a little, as long as it does not hurt the listening experience.
- Keep tuning the TTS generation. I already adjusted XiaoYa’s voice and fixed some of the vibe-related logic so the speech no longer speeds up unexpectedly.
- Continue refining the prompts so the conversations feel timely and natural.
- Publish to the major podcast platforms.
- In the future, it would be great if the hosts could say things like, “we actually talked about this a few episodes ago.” That probably means the character setup and knowledge base should be updated regularly.
---
## How Chinese Fonts Work on the Web
- Date: 2025-10-26
- URL: https://craigary.net/writings/how-chinese-fonts-work-on-the-web
If you work with Chinese on the web, serif and sans-serif are only part of the story. The harder part is that Chinese text does not render the same way across regions, even when the underlying character is technically the same.
Mainland China mainly uses Simplified Chinese. Taiwan and Hong Kong mainly use Traditional Chinese. But the difference is not simply “simplified versus traditional.” Many characters are shared, and some even use the same Unicode code point while still appearing with different glyph shapes in different regions.
That is why a piece of Chinese text can look subtly wrong even when every character is technically valid. A reader in Taiwan may notice that Traditional Chinese text was entered on a mainland system. A reader in mainland China may feel that Simplified Chinese text looks slightly off when it is rendered in a Taiwan-oriented environment. These differences usually show up in glyph forms, punctuation, and overall typographic texture.
Fonts are the last mile of that rendering process. Most operating systems already include multiple Chinese font families for different regions. On macOS, for example, PingFang has regional variants such as SC, HK, TC, and MO. There are also serif families such as Songti SC and Apple LiSung.
On the web, there is no single `font-family` value that will make every Chinese reader happy. The browser cannot reliably guess which regional glyph variant you intended from Unicode alone. In practice, the best approach is to work with the platform instead of fighting it.
A simple and practical approach looks like this:
1. End your font stack with strong system fallbacks such as `-apple-system`, `BlinkMacSystemFont`, and `sans-serif`. If your preferred font is unavailable, the operating system can still choose a valid local font.
2. Always set the HTML `lang` attribute correctly, and update it when the interface language changes. This helps the shaping engine choose more appropriate glyphs and punctuation behavior.
3. Use region-specific font stacks for Chinese when needed.
- For `zh-CN`, prefer Simplified Chinese fonts such as PingFang SC or Songti SC.
- For `zh-HK`, prefer Hong Kong variants such as PingFang HK.
- For `zh-TW`, prefer Taiwan variants such as PingFang TC.
4. When the interface is not explicitly Chinese, let the system fallback handle Chinese text. On a device configured for Taiwan, text will usually render with Taiwan-style glyphs. The same logic applies to other locales.
The important point is this: Chinese typography on the web is not just about choosing between serif and sans-serif. It is also about choosing the right regional behavior. If you get the language tag and fallback strategy right, the system can do much of the hard work for you.
This is the simplest way to think about it: pick a sensible font stack, set `lang` accurately, and respect regional conventions instead of trying to force one universal Chinese font solution.
---
## A Journey Through the Notion Certifications
- Date: 2024-10-09
- URL: https://craigary.net/writings/a-journey-through-the-notion-certifications
I'm thrilled to share an exciting update with you all. After waiting for over a year since earning my Notion Essentials Badge, I've finally taken the plunge and passed not just the Notion Advanced Certification but also the Settings & Sharing Certification. It's been quite a ride!
To be honest, I had been hesitant about attempting the Settings & Sharing exam for a while. I thought it might be too enterprise-focused and not really my cup of tea. But after completing the Notion Advanced Exam, I don't know what came over me, but I suddenly found the courage to apply for the Settings & Sharing Certification as well. And you know what? They approved me and gave me the exam right away!

Let me give you a quick rundown of what these exams cover. The Notion Advanced Exam tests your knowledge of Notion's features, ensuring you have a deep understanding of the platform's capabilities. On the other hand, the Settings & Sharing Certification delves into the nitty-gritty of permission management and enterprise-level stuff like the Membership Admin role, which is exclusive to the Notion Enterprise plan.

While my long-term experience with Notion did give me a solid foundation, I still took the time to prepare thoroughly. I read through the enterprise section of Notion's help documentation and tested their sharing and permissions management features several times to ensure I had a firm grasp on the concepts.
Additionally, during my preparation for the Advanced Certification, I also dove into reading a lot of articles about team workflow methodologies like Agile and Waterfall. Speaking of which, Notion's Blog published a truly insightful and beneficial post on this subject ([https://www.notion.so/blog/agile-vs-waterfall](https://www.notion.so/blog/agile-vs-waterfall)), which I highly recommend checking out.

Whether you're aspiring to be a Notion consultant or simply want to test your Notion proficiency, I highly encourage every Notion pro user to apply for these certifications (which are free, by the way). The process of preparing and taking the exams will undoubtedly impart invaluable knowledge and insights about the platform. You can find more information on Notion's Certification program here: [https://www.notion.so/lp/certifications](https://www.notion.so/lp/certifications)
Earning these certifications has been a rewarding experience, and I'm grateful for the opportunity to deepen my understanding of Notion's advanced features and enterprise-level capabilities. If you're a Notion enthusiast, I strongly encourage you to embark on this journey as well. Trust me; it's worth the effort!