Redaction Test Page
This page tests the content redaction plugin. Compare local vs production builds.
Test 1: Basic Redaction
This content should be visible in both builds.
_[Content redacted for privacy]_
This content should also be visible in both builds.
Test 2: Custom Replacement Text
Contact information below:
Email and phone redacted for privacy
Test 3: Multiple Sections
Section A (Public)
This is public content that everyone should see.
_[Content redacted for privacy]_
Section B (Public)
More public content here.
_[Content redacted for privacy]_
Section C (Public)
Final public section.
Test 4: Nested Content
_[Content redacted for privacy]_
Verification Instructions
In Local Build
Run: npx quartz build --serve
Expected results:
- ✅ All content visible (including sections marked for redaction)
- ✅ No HTML comments visible (clean reading)
In Production Build
Run: NODE_ENV=production npx quartz build --serve
Expected results:
- ✅ Test 1: Shows “[Content redacted for privacy]”
- ✅ Test 2: Shows “Email and phone redacted for privacy”
- ✅ Test 3: Shows two redaction messages
- ✅ Test 4: Entire nested section replaced with redaction message
- ✅ All public content still visible
Delete This File
This is a test file. Delete it before deploying to production or add it to .gitignore.
rm content/90-Reference/Redaction-Test.mdOr exclude from builds in quartz.config.ts:
ignorePatterns: [
// ... other patterns
"90-Reference/Redaction-Test.md",
]