| 1 | // SPDX-License-Identifier: AGPL-3.0-or-later |
| 2 | |
| 3 | package markdown |
| 4 | |
| 5 | // Version is the canonical pipeline-version stamp written to |
| 6 | // `body_html_cached`-style columns whenever a comment / issue body / |
| 7 | // PR body is rendered. Bumping this constant invalidates cached HTML |
| 8 | // lazily on read: callers compare the stored `md_pipeline_version` to |
| 9 | // `Version` and re-render when they don't match. |
| 10 | // |
| 11 | // Bump rules: |
| 12 | // - Sanitizer policy change (allow/disallow tag, attribute, scheme). |
| 13 | // - New AST extension or rendering output change. |
| 14 | // - Goldmark / bluemonday major-version upgrade with output drift. |
| 15 | // |
| 16 | // Don't bump for: |
| 17 | // - Bug fixes that don't change rendered HTML for any input. |
| 18 | // - Performance-only changes. |
| 19 | const Version int32 = 1 |
| 20 |