今日Notion

2026年11月25日 星期三

摘要

1焦点:Notion API现在可以以“## Action items”等标题为锚点,在其前后直接插入内容。

2旧的文本匹配方式(insert_content.after)已被弃用。

3提示:仍在使用旧方式的集成应计划改用新的position设置。

今日焦点
Notion API现可在指定标题后直接插入内容开发者工具
v5.32.0
Notion JavaScript SDK version with the new option
★ 今日焦点

Notion API现可在指定标题后直接插入内容

Notion开发者更新日志11月24日的条目显示,其更新页面Markdown A simple way of formatting text with symbols, such as # for headings and - for bullet points, that apps turn into styled text.的接口现在可以在选定的块(例如“## Action items”标题)之前或之后直接插入新内容,不再依赖已被弃用的旧式文本匹配方法(Notion Developers Changelog A dated list of what changed in each new version of an app, published by the company that makes it.)。

我们了解到

  1. 有何变化:insert_content现在接受after_content或before_content位置加锚点,例如标题“## Action items”。新内容会插入到与锚点匹配的块旁边,并保持该块的嵌套层级(Notion Developers changelog)。
  2. 弃用了什么:旧的insert_content.after参数(用省略号匹配文本)现已弃用,集成应改用新的position设置。insert_content本身不再被标记为旧版功能(Notion Developers changelog)。
  3. 要求:锚点位置仅适用于markdown_version“v2”。官方JavaScript SDK A ready-made toolbox of code that a company gives developers so they can build things on top of its product, like custom blocks in Notion. @notionhq/client 5.32.0版支持新位置,并将旧参数标为弃用(Notion Developers changelog)。

为何重要: 如果你用脚本、自动化或AI代理往Notion页面添加笔记或任务,这让你无需重写整页就能把文字放到正确的位置。请检查仍在使用旧“after”选项的集成,并在它被移除前计划迁移。

分享这篇报道

来源(1)
  • Changelog: November 24, 2026 - Insert markdown next to a block · Notion DevelopersRead ↗