From 793e6b538c95c54c647f7127d634818547028999 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Tue, 30 Jun 2026 07:06:07 +0800 Subject: feat(docs): add @@@ hidden code block support for compile-tested examples --- docs/doc.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'docs/doc.html') diff --git a/docs/doc.html b/docs/doc.html index 8640565..783ccb4 100644 --- a/docs/doc.html +++ b/docs/doc.html @@ -58,6 +58,16 @@ depth: 2, }, plugins: [ + function (hook) { + hook.beforeEach(function (content) { + return content + .split("\n") + .filter(function (line) { + return !line.startsWith("@@@"); + }) + .join("\n"); + }); + }, [ "flexible-alerts", { -- cgit