/** * 仅启用 remark-directive 的 **容器** 语法(`:::name` … `:::`),不解析行内 `:foo` 与块级 `::foo`。 * 避免普通文本中的 `:15`(时间)或 `:icon[...]` 被误解析为指令。 * * 依赖与 `remark-directive` 相同:`micromark-extension-directive` + `mdast-util-directive`。 * * 仅使用官方入口 `directive()` 中与 `lib/syntax.js` 一致的 flow[58][0](容器指令), * 避免深层路径 `lib/directive-container.js`(未列入 package exports,Next/Turbopack 等会解析失败)。 */ import type { Root } from 'mdast'; import type { Plugin } from 'unified'; /** * @returns {undefined} * Nothing. */ declare const remarkDirectiveContainersOnly: Plugin<[], Root>; export default remarkDirectiveContainersOnly;