We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8b6607 commit 5c44211Copy full SHA for 5c44211
website/docusaurus.config.ts
@@ -67,6 +67,16 @@ const config: Config = {
67
68
markdown: {
69
mermaid: true,
70
+ preprocessor: ({ fileContent }) => {
71
+ // Strip presentation-only blocks entirely (for presentations, not docs)
72
+ let result = fileContent.replace(
73
+ /<!--\s*presentation-only-start\s*-->[\s\S]*?<!--\s*presentation-only-end\s*-->/g,
74
+ ''
75
+ );
76
+ // Strip doc-only markers (keep content)
77
+ result = result.replace(/<!--\s*doc-only-(start|end)\s*-->\n?/g, '');
78
+ return result;
79
+ },
80
},
81
82
presets: [
0 commit comments