From 3c64d1ac4fed7ba56d45e521f27c2aea98e89f76 Mon Sep 17 00:00:00 2001 From: Brandon Harvey <8107750+bharvey88@users.noreply.github.com> Date: Wed, 27 May 2026 12:33:31 -0500 Subject: [PATCH] Remove broken mkdoc_annotation CloudCannon snippet (#877) The mkdoc_annotation _snippets definition (added in #868) breaks CloudCannon's Rich Text editor with 'Failed to process the current value' on every page. Unlike the working button snippets, which are single-line inline templates, the annotation template spans multiple blocks (paragraph + { .annotate } attribute + ordered list). CloudCannon builds a matcher from every snippet template and runs it against the whole page on load, and it cannot compile this block-spanning template, so processing throws even on pages with no annotations. No documentation page uses the annotation syntax, so removing the definition loses no content. This reverts cloudcannon.config.yml to the last known-good state (9cd1310), which the CloudCannon GUI was able to edit. Annotations can still be authored in CloudCannon's source mode. --- cloudcannon.config.yml | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/cloudcannon.config.yml b/cloudcannon.config.yml index 06472385b8..85d39b1730 100755 --- a/cloudcannon.config.yml +++ b/cloudcannon.config.yml @@ -208,36 +208,3 @@ _snippets: label: Button Icon comment: > Search available icons here. Remove the colons on each side when pasting. -#brandon added this for annotations - mkdoc_annotation: - snippet: "[[annotated_text]] (1)\n{ .annotate }\n\n1. [[annotation_content]]" - preview: - text: - - key: annotated_text - - 'Annotation' - subtext: - - key: annotation_content - picker_preview: - text: Annotation - params: - annotated_text: - parser: content - options: - editor_key: annotated_text - style: - trim_text: true - annotation_content: - parser: content - options: - editor_key: annotation_content - style: - trim_text: true - _inputs: - annotated_text: - type: text - label: Visible text - comment: The text the reader sees, with a hover/tap marker after it. - annotation_content: - type: text - label: Annotation content - comment: The hidden note revealed when the marker is clicked.