From 3fed90b1974e41ce09fe922079b87b633c02dfd6 Mon Sep 17 00:00:00 2001 From: Adi Rabinovich Date: Sat, 6 Dec 2025 12:28:29 -0500 Subject: [PATCH] Fix JSON escaping for tag value in clipper template --- templates/medium-concise-summary-clipper.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/medium-concise-summary-clipper.json b/templates/medium-concise-summary-clipper.json index b107397..cf37542 100644 --- a/templates/medium-concise-summary-clipper.json +++ b/templates/medium-concise-summary-clipper.json @@ -48,7 +48,7 @@ }, { "name": "tags", - "value": "{{selector:a[href^="/tag/"] > div|replace:("":"-")}}", + "value": "{{selector:a[href^=\"/tag/\"] > div|replace:(\"\":\"-\")}}", "type": "multitext" } ], @@ -58,4 +58,4 @@ "schema:@Article" ], "noteContentFormat": "# {{title}}\n\n## Summary\n{{\"Based solely on the provided context, write ONE paragraph (70-110 words). No headings, no lists, no bullets, no tables, no code blocks. Plain text. ASCII only. Do not include surrounding quotes.\"|replace:\"/^'|'$/g\":\"\"|strip_tags:\"p,div,span,code,pre,ul,ol,li,h1,h2,h3,h4,h5,h6,table,thead,tbody,tr,td,th\"|strip_md|replace:\"/^\\s*[-*•].*$/gm\":\"\"|replace:\"/^(?:\\d+\\.|\\d+\\))\\s.*$/gm\":\"\"|replace:\"/\\s+/g\":\" \"|trim}}\n\n## Key points\n{{\"Based solely on the provided context, return 3-6 key points as a Markdown list. Each on its own line, prefixed exactly with '- ', 6-12 words, non-overlapping, no trailing punctuation. ASCII only. Do not include surrounding quotes.\"|replace:\"/^'|'$/g\":\"\"|strip_tags:\"p,div,span,ul,ol,li\"|replace:\"/^(?:\\*|•|—|–|\\d+\\.|\\d+\\))\\s*/gm\":\"- \"|replace:\"/\\s*-\\s/g\":\"\\n- \"|replace:\"/[\\.;:!\\?]+$/gm\":\"\"|replace:\"/[^\\x00-\\x7F]/g\":\"\"|replace:\"/^\\s*-\\s*$/gm\":\"\"|replace:\"/^\\s*$/\":\"- insufficient context\"|trim}}\n" -} \ No newline at end of file +}