@bendyline/squisq 2.2.0 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/NOTICE.md +21 -19
  2. package/README.md +8 -8
  3. package/THIRD_PARTY_LICENSES.txt +178 -0
  4. package/dist/{Doc-BubIpWsp.d.ts → Doc-COe-rPQB.d.ts} +6 -4
  5. package/dist/{ImageEditDoc-CGxk5CHc.d.ts → ImageEditDoc-dtKahVyD.d.ts} +1 -1
  6. package/dist/{chunk-I2O6W7DX.js → chunk-3FRUQLQR.js} +37 -13
  7. package/dist/{chunk-7ARJZYQY.js → chunk-E3RXZUNP.js} +2219 -1198
  8. package/dist/{chunk-DYPMOPIW.js → chunk-FYRWV6AJ.js} +1 -1
  9. package/dist/{chunk-FDYDYL77.js → chunk-QWCFK5FN.js} +1 -0
  10. package/dist/{chunk-CB45YGAM.js → chunk-SPTY4C6F.js} +134 -2
  11. package/dist/doc/index.d.ts +290 -7
  12. package/dist/doc/index.js +13 -4
  13. package/dist/generate/index.d.ts +1 -1
  14. package/dist/generate/index.js +0 -1
  15. package/dist/icons/index.js +0 -1
  16. package/dist/imageEdit/index.d.ts +3 -3
  17. package/dist/index.d.ts +6 -6
  18. package/dist/index.js +17 -10
  19. package/dist/jsonForm/index.d.ts +1 -1
  20. package/dist/jsonForm/index.js +1 -1
  21. package/dist/{materializePageSection-wSLA2A1g.d.ts → materializePageSection-BSMOocve.d.ts} +1 -1
  22. package/dist/narration/index.d.ts +1 -1
  23. package/dist/narration/index.js +3 -4
  24. package/dist/random/index.js +0 -1
  25. package/dist/recommend/index.js +1 -2
  26. package/dist/schemas/index.d.ts +17 -5
  27. package/dist/schemas/index.js +3 -1
  28. package/dist/{themeLibrary-DU9mUmVl.d.ts → themeLibrary-BUTWjufL.d.ts} +1 -1
  29. package/dist/timing/index.js +0 -1
  30. package/dist/transform/index.d.ts +2 -2
  31. package/package.json +7 -3
  32. package/dist/chunk-2L55443L.js +0 -0
  33. package/dist/chunk-QKPXHDLR.js +0 -0
  34. package/dist/chunk-WV5ARNDA.js +0 -0
  35. package/dist/chunk-XWNNA3KE.js +0 -0
  36. package/dist/chunk-YZNGMV3G.js +0 -0
package/NOTICE.md CHANGED
@@ -1,24 +1,26 @@
1
1
  # Third-Party Notices for @bendyline/squisq
2
2
 
3
- This notice applies to the `@bendyline/squisq` npm package. Squisq-authored
4
- code is licensed under the MIT license in `LICENSE`. Third-party components
5
- remain under their respective license terms.
3
+ This notice applies to the `@bendyline/squisq` npm package.
4
+ Squisq-authored code is licensed under the MIT license in `LICENSE`.
5
+ Third-party components remain under their respective license terms.
6
6
 
7
- ## Runtime dependencies
7
+ ## Runtime and generated-data dependencies
8
8
 
9
- | Package | Version | License | Repository |
10
- | ------------------- | ------- | ---------- | ---------------------------------------------------------------------- |
11
- | genson-js | 0.0.8 | Apache-2.0 | https://github.com/aspecto-io/genson-js |
12
- | hast-util-from-html | 2.0.3 | MIT | https://github.com/syntax-tree/hast-util-from-html |
13
- | localforage | 1.10.0 | Apache-2.0 | https://github.com/localForage/localForage |
14
- | ngeohash | 0.6.3 | MIT | https://github.com/sunng87/node-geohash |
15
- | remark-directive | 3.0.1 | MIT | https://github.com/remarkjs/remark-directive |
16
- | remark-frontmatter | 5.0.0 | MIT | https://github.com/remarkjs/remark-frontmatter |
17
- | remark-gfm | 4.0.1 | MIT | https://github.com/remarkjs/remark-gfm |
18
- | remark-math | 6.0.0 | MIT | https://github.com/remarkjs/remark-math |
19
- | remark-parse | 11.0.0 | MIT | https://github.com/remarkjs/remark/tree/main/packages/remark-parse |
20
- | remark-stringify | 11.0.0 | MIT | https://github.com/remarkjs/remark/tree/main/packages/remark-stringify |
21
- | unified | 11.0.5 | MIT | https://unifiedjs.com |
9
+ | Package | Version | License | Repository |
10
+ | ----------------------------------------- | ------- | ----------------------------- | ---------------------------------------------------------------------- |
11
+ | genson-js | 0.0.8 | Apache-2.0 | https://github.com/aspecto-io/genson-js |
12
+ | hast-util-from-html | 2.0.3 | MIT | https://github.com/syntax-tree/hast-util-from-html |
13
+ | localforage | 1.10.0 | Apache-2.0 | https://github.com/localForage/localForage |
14
+ | ngeohash | 0.6.3 | MIT | https://github.com/sunng87/node-geohash |
15
+ | remark-directive | 3.0.1 | MIT | https://github.com/remarkjs/remark-directive |
16
+ | remark-frontmatter | 5.0.0 | MIT | https://github.com/remarkjs/remark-frontmatter |
17
+ | remark-gfm | 4.0.1 | MIT | https://github.com/remarkjs/remark-gfm |
18
+ | remark-math | 6.0.0 | MIT | https://github.com/remarkjs/remark-math |
19
+ | remark-parse | 11.0.0 | MIT | https://github.com/remarkjs/remark/tree/main/packages/remark-parse |
20
+ | remark-stringify | 11.0.0 | MIT | https://github.com/remarkjs/remark/tree/main/packages/remark-stringify |
21
+ | unified | 11.0.5 | MIT | https://unifiedjs.com |
22
+ | @fortawesome/fontawesome-free _(bundled)_ | 7.2.0 | CC-BY-4.0 AND OFL-1.1 AND MIT | https://github.com/FortAwesome/Font-Awesome |
22
23
 
23
- Copyright and complete license texts for these dependencies are included in
24
- their respective npm distributions and source repositories.
24
+ The generated icon catalog incorporates Font Awesome Free metadata. Exact
25
+ third-party license texts for bundled code and data are shipped in
26
+ THIRD_PARTY_LICENSES.txt.
package/README.md CHANGED
@@ -25,14 +25,14 @@ npm install @bendyline/squisq
25
25
 
26
26
  ## New in this release
27
27
 
28
- The Squiggly Square markdown standard (see [`docs/SquigglySquare.md`](../../docs/SquigglySquare.md)) gained several authoring capabilities:
29
-
30
- - **[Standalone annotations](../../docs/SquigglySquare.md#standalone-annotations)** — a top-level paragraph that is exactly `{[templateName …]}` becomes a heading-less template block; the body that follows it is its contents.
31
- - **[Inline attribute coercion](../../docs/SquigglySquare.md#inline-attribute-coercion)** — `{[map center="47.6,-122.3" zoom=9]}` and `{[twoColumn left="Espresso|Bold"]}` now render without a data fence (typed via `TEMPLATE_INPUT_DESCRIPTORS`).
32
- - **[Validation additions](../../docs/SquigglySquare.md#validation)** — new `unknown-input` / `invalid-input-value` / `missing-input` warnings plus `possible-data-fence` / `conflicting-annotation-key` info diagnostics (a new `info` severity).
33
- - **[YAML data fences](../../docs/SquigglySquare.md#structured-data-fences)** now accept one level of nested mappings (a `map` `center` can be pure YAML).
34
- - **[Multi-line frontmatter](../../docs/SquigglySquare.md#multi-line-frontmatter)** — `squisq-custom-templates` / `squisq-custom-themes` can be authored as pretty JSON via YAML literal block scalars (`key: |-`).
35
- - **Custom-template tokens v2** (see [`docs/SquigglySquare.md`](../../docs/SquigglySquare.md), "Registering custom templates") — `{attr:key}`, pipe defaults on every token, and per-layer `repeat` with `{item}` / `{index}` tokens.
28
+ The Squiggly Square markdown standard (see [`docs/SquigglySquare.md`](https://github.com/bendyline/squisq/blob/main/docs/SquigglySquare.md)) gained several authoring capabilities:
29
+
30
+ - **[Standalone annotations](https://github.com/bendyline/squisq/blob/main/docs/SquigglySquare.md#standalone-annotations)** — a top-level paragraph that is exactly `{[templateName …]}` becomes a heading-less template block; the body that follows it is its contents.
31
+ - **[Inline attribute coercion](https://github.com/bendyline/squisq/blob/main/docs/SquigglySquare.md#inline-attribute-coercion)** — `{[map center="47.6,-122.3" zoom=9]}` and `{[twoColumn left="Espresso|Bold"]}` now render without a data fence (typed via `TEMPLATE_INPUT_DESCRIPTORS`).
32
+ - **[Validation additions](https://github.com/bendyline/squisq/blob/main/docs/SquigglySquare.md#validation)** — new `unknown-input` / `invalid-input-value` / `missing-input` warnings plus `possible-data-fence` / `conflicting-annotation-key` info diagnostics (a new `info` severity).
33
+ - **[YAML data fences](https://github.com/bendyline/squisq/blob/main/docs/SquigglySquare.md#structured-data-fences)** now accept one level of nested mappings (a `map` `center` can be pure YAML).
34
+ - **[Multi-line frontmatter](https://github.com/bendyline/squisq/blob/main/docs/SquigglySquare.md#multi-line-frontmatter)** — `squisq-custom-templates` / `squisq-custom-themes` can be authored as pretty JSON via YAML literal block scalars (`key: |-`).
35
+ - **Custom-template tokens v2** (see [`docs/SquigglySquare.md`](https://github.com/bendyline/squisq/blob/main/docs/SquigglySquare.md), "Registering custom templates") — `{attr:key}`, pipe defaults on every token, and per-layer `repeat` with `{item}` / `{index}` tokens.
36
36
 
37
37
  New `@bendyline/squisq/doc` exports powering the above: `coerceTemplateParams`, `lintTemplateParams`, `TEMPLATE_INPUT_DESCRIPTORS`, and `replaceDataFence`.
38
38
 
@@ -0,0 +1,178 @@
1
+ THIRD-PARTY LICENSES FOR @bendyline/squisq
2
+
3
+ Generated from the actual esbuild input graph. Package-local license, copying,
4
+ and notice files are reproduced verbatim. When an npm tarball omits its
5
+ repository license, the pinned upstream copy is vendored and identified below.
6
+
7
+ COMPONENTS
8
+ - @fortawesome/fontawesome-free@7.2.0 ((CC-BY-4.0 AND OFL-1.1 AND MIT)); files: LICENSE.txt
9
+
10
+ ==============================================================================
11
+ @fortawesome/fontawesome-free@7.2.0 - LICENSE.txt
12
+ ==============================================================================
13
+ Fonticons, Inc. (https://fontawesome.com)
14
+
15
+ --------------------------------------------------------------------------------
16
+
17
+ Font Awesome Free License
18
+
19
+ Font Awesome Free is free, open source, and GPL friendly. You can use it for
20
+ commercial projects, open source projects, or really almost whatever you want.
21
+ Full Font Awesome Free license: https://fontawesome.com/license/free.
22
+
23
+ --------------------------------------------------------------------------------
24
+
25
+ # Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)
26
+
27
+ The Font Awesome Free download is licensed under a Creative Commons
28
+ Attribution 4.0 International License and applies to all icons packaged
29
+ as SVG and JS file types.
30
+
31
+ --------------------------------------------------------------------------------
32
+
33
+ # Fonts: SIL OFL 1.1 License
34
+
35
+ In the Font Awesome Free download, the SIL OFL license applies to all icons
36
+ packaged as web and desktop font files.
37
+
38
+ Copyright (c) 2026 Fonticons, Inc. (https://fontawesome.com)
39
+ with Reserved Font Name: "Font Awesome".
40
+
41
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
42
+ This license is copied below, and is also available with a FAQ at:
43
+ http://scripts.sil.org/OFL
44
+
45
+ SIL OPEN FONT LICENSE
46
+ Version 1.1 - 26 February 2007
47
+
48
+ PREAMBLE
49
+ The goals of the Open Font License (OFL) are to stimulate worldwide
50
+ development of collaborative font projects, to support the font creation
51
+ efforts of academic and linguistic communities, and to provide a free and
52
+ open framework in which fonts may be shared and improved in partnership
53
+ with others.
54
+
55
+ The OFL allows the licensed fonts to be used, studied, modified and
56
+ redistributed freely as long as they are not sold by themselves. The
57
+ fonts, including any derivative works, can be bundled, embedded,
58
+ redistributed and/or sold with any software provided that any reserved
59
+ names are not used by derivative works. The fonts and derivatives,
60
+ however, cannot be released under any other type of license. The
61
+ requirement for fonts to remain under this license does not apply
62
+ to any document created using the fonts or their derivatives.
63
+
64
+ DEFINITIONS
65
+ "Font Software" refers to the set of files released by the Copyright
66
+ Holder(s) under this license and clearly marked as such. This may
67
+ include source files, build scripts and documentation.
68
+
69
+ "Reserved Font Name" refers to any names specified as such after the
70
+ copyright statement(s).
71
+
72
+ "Original Version" refers to the collection of Font Software components as
73
+ distributed by the Copyright Holder(s).
74
+
75
+ "Modified Version" refers to any derivative made by adding to, deleting,
76
+ or substituting — in part or in whole — any of the components of the
77
+ Original Version, by changing formats or by porting the Font Software to a
78
+ new environment.
79
+
80
+ "Author" refers to any designer, engineer, programmer, technical
81
+ writer or other person who contributed to the Font Software.
82
+
83
+ PERMISSION & CONDITIONS
84
+ Permission is hereby granted, free of charge, to any person obtaining
85
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
86
+ redistribute, and sell modified and unmodified copies of the Font
87
+ Software, subject to the following conditions:
88
+
89
+ 1) Neither the Font Software nor any of its individual components,
90
+ in Original or Modified Versions, may be sold by itself.
91
+
92
+ 2) Original or Modified Versions of the Font Software may be bundled,
93
+ redistributed and/or sold with any software, provided that each copy
94
+ contains the above copyright notice and this license. These can be
95
+ included either as stand-alone text files, human-readable headers or
96
+ in the appropriate machine-readable metadata fields within text or
97
+ binary files as long as those fields can be easily viewed by the user.
98
+
99
+ 3) No Modified Version of the Font Software may use the Reserved Font
100
+ Name(s) unless explicit written permission is granted by the corresponding
101
+ Copyright Holder. This restriction only applies to the primary font name as
102
+ presented to the users.
103
+
104
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
105
+ Software shall not be used to promote, endorse or advertise any
106
+ Modified Version, except to acknowledge the contribution(s) of the
107
+ Copyright Holder(s) and the Author(s) or with their explicit written
108
+ permission.
109
+
110
+ 5) The Font Software, modified or unmodified, in part or in whole,
111
+ must be distributed entirely under this license, and must not be
112
+ distributed under any other license. The requirement for fonts to
113
+ remain under this license does not apply to any document created
114
+ using the Font Software.
115
+
116
+ TERMINATION
117
+ This license becomes null and void if any of the above conditions are
118
+ not met.
119
+
120
+ DISCLAIMER
121
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
122
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
123
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
124
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
125
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
126
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
127
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
128
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
129
+ OTHER DEALINGS IN THE FONT SOFTWARE.
130
+
131
+ --------------------------------------------------------------------------------
132
+
133
+ # Code: MIT License (https://opensource.org/licenses/MIT)
134
+
135
+ In the Font Awesome Free download, the MIT license applies to all non-font and
136
+ non-icon files.
137
+
138
+ Copyright 2026 Fonticons, Inc.
139
+
140
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
141
+ this software and associated documentation files (the "Software"), to deal in the
142
+ Software without restriction, including without limitation the rights to use, copy,
143
+ modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
144
+ and to permit persons to whom the Software is furnished to do so, subject to the
145
+ following conditions:
146
+
147
+ The above copyright notice and this permission notice shall be included in all
148
+ copies or substantial portions of the Software.
149
+
150
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
151
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
152
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
153
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
154
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
155
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
156
+
157
+ --------------------------------------------------------------------------------
158
+
159
+ # Attribution
160
+
161
+ Attribution is required by MIT, SIL OFL, and CC BY licenses. Downloaded Font
162
+ Awesome Free files already contain embedded comments with sufficient
163
+ attribution, so you shouldn't need to do anything additional when using these
164
+ files normally.
165
+
166
+ We've kept attribution comments terse, so we ask that you do not actively work
167
+ to remove them from files, especially code. They're a great way for folks to
168
+ learn about Font Awesome.
169
+
170
+ --------------------------------------------------------------------------------
171
+
172
+ # Brand Icons
173
+
174
+ All brand icons are trademarks of their respective owners. The use of these
175
+ trademarks does not indicate endorsement of the trademark holder by Font
176
+ Awesome, nor vice versa. **Please do not use brand logos for any purpose except
177
+ to represent the company, product, or service to which they refer.**
178
+
@@ -415,6 +415,8 @@ interface StatHighlightInput extends BaseTemplateBlock {
415
415
  */
416
416
  interface QuoteBlockInput extends BaseTemplateBlock {
417
417
  template: 'quote';
418
+ /** Optional heading above the quote. */
419
+ title?: string;
418
420
  /** The quote text (supports \n for line breaks) */
419
421
  quote: string;
420
422
  /** Attribution (author, source) */
@@ -757,10 +759,10 @@ interface VideoWithCaptionInput extends BaseTemplateBlock {
757
759
  posterSrc?: string;
758
760
  /** Alt text for accessibility */
759
761
  videoAlt: string;
760
- /** Start time within source video (seconds) */
761
- clipStart: number;
762
- /** End time within source video (seconds) */
763
- clipEnd: number;
762
+ /** Start time within source video (seconds). Defaults to 0. */
763
+ clipStart?: number;
764
+ /** End time within source video (seconds). Defaults to the block duration. */
765
+ clipEnd?: number;
764
766
  /** Source video total duration (for validation) */
765
767
  sourceDuration?: number;
766
768
  /** Caption text overlay */
@@ -1,4 +1,4 @@
1
- import { R as ImageLayer, a$ as TextLayer, aO as ShapeLayer, aw as PathLayer } from './Doc-BubIpWsp.js';
1
+ import { R as ImageLayer, a$ as TextLayer, aO as ShapeLayer, aw as PathLayer } from './Doc-COe-rPQB.js';
2
2
 
3
3
  /**
4
4
  * ImageEditDoc — JSON document describing a layered, editable image.
@@ -24,7 +24,7 @@ import {
24
24
  templateRegistry,
25
25
  writeCustomTemplatesToFrontmatter,
26
26
  writeCustomThemesToFrontmatter
27
- } from "./chunk-7ARJZYQY.js";
27
+ } from "./chunk-E3RXZUNP.js";
28
28
  import {
29
29
  ASCII_TREE_VOCAB,
30
30
  ASCII_VOCAB,
@@ -40,7 +40,7 @@ import {
40
40
  toCells,
41
41
  toGrid,
42
42
  traceBoxes
43
- } from "./chunk-FDYDYL77.js";
43
+ } from "./chunk-QWCFK5FN.js";
44
44
  import {
45
45
  defaultPageStyle,
46
46
  resolveMediaSchedule
@@ -537,8 +537,12 @@ function resolvePageBlock(block) {
537
537
  };
538
538
  const coercedParams = coerceTemplateParams(rawName, rawParams).input;
539
539
  let base;
540
+ let derivedInputs = null;
540
541
  if (annotation) {
541
542
  const headingText = extractPlainText(block.sourceHeading);
543
+ derivedInputs = deriveTemplateInputs(rawName, headingText, block.contents, {
544
+ placeholders: true
545
+ });
542
546
  base = {
543
547
  id: block.id,
544
548
  template: rawName,
@@ -548,9 +552,7 @@ function resolvePageBlock(block) {
548
552
  title: headingText,
549
553
  contents: block.contents,
550
554
  children: block.children,
551
- ...deriveTemplateInputs(rawName, headingText, block.contents, {
552
- placeholders: true
553
- }) ?? {}
555
+ ...derivedInputs ?? {}
554
556
  };
555
557
  } else {
556
558
  base = {
@@ -566,6 +568,14 @@ function resolvePageBlock(block) {
566
568
  ...block.templateData ?? {},
567
569
  ...coercedParams
568
570
  };
571
+ const explicitQuote = Object.prototype.hasOwnProperty.call(coercedParams, "quote") ? coercedParams.quote : block.templateData?.quote;
572
+ if (templateName === "quote" && derivedInputs && !Object.prototype.hasOwnProperty.call(derivedInputs, "title") && !(typeof explicitQuote === "string" && explicitQuote.trim())) {
573
+ const quoteInput = templateBlock;
574
+ quoteInput.quote = derivedInputs.quote;
575
+ if (!Object.prototype.hasOwnProperty.call(block.templateData ?? {}, "title") && !Object.prototype.hasOwnProperty.call(coercedParams, "title")) {
576
+ delete quoteInput.title;
577
+ }
578
+ }
569
579
  return { templated: true, templateName, templateBlock };
570
580
  }
571
581
 
@@ -642,6 +652,7 @@ var quote = (input) => {
642
652
  kind: "quote-band",
643
653
  variant: "plain",
644
654
  slots: {
655
+ title: q.title,
645
656
  body: { text: q.quote ?? "" },
646
657
  attribution: q.attribution,
647
658
  media: accentImageMedia(q.accentImage)
@@ -1791,9 +1802,10 @@ var PAGE_BASE_CSS = `
1791
1802
  .squisq-page-prose p + p { margin-top: 1.25em; }
1792
1803
  .squisq-page-prose > * + * { margin-top: 1.1em; }
1793
1804
  .squisq-page-prose a { color: var(--squisq-page-primary); text-decoration-color: color-mix(in srgb, var(--squisq-page-primary) 40%, transparent); }
1794
- .squisq-page-prose code { font-family: var(--squisq-page-mono-font); font-size: 0.9em; background: color-mix(in srgb, var(--squisq-page-text) 8%, transparent); border-radius: 4px; padding: 0.12em 0.35em; }
1805
+ .squisq-page-prose code { font-family: var(--squisq-page-mono-font); font-size: 0.9em; }
1806
+ .squisq-page-prose :not(pre) > code { background: color-mix(in srgb, var(--squisq-page-text) 8%, transparent); border-radius: 4px; padding: 0.12em 0.35em; }
1795
1807
  .squisq-page-prose pre { background: color-mix(in srgb, var(--squisq-page-text) 6%, transparent); border-radius: var(--squisq-page-radius); padding: 1em 1.25em; overflow-x: auto; }
1796
- .squisq-page-prose pre code { background: none; padding: 0; }
1808
+ .squisq-page-prose pre code { background: none; border-radius: 0; padding: 0; }
1797
1809
  .squisq-page-prose blockquote { margin: 0; border-left: 4px solid var(--squisq-page-accent); padding-left: 1.25em; color: var(--squisq-page-text-muted); }
1798
1810
  .squisq-page-prose ul, .squisq-page-prose ol { padding-left: 1.5em; margin: 0; }
1799
1811
  .squisq-page-prose li + li { margin-top: 0.4em; }
@@ -2488,33 +2500,45 @@ function checkAssets(markdownDoc, blocks, hasAsset, diagnostics) {
2488
2500
  ...line != null ? { line } : {}
2489
2501
  });
2490
2502
  };
2503
+ const markdownUrls = /* @__PURE__ */ new Set();
2491
2504
  const walk = (node) => {
2492
2505
  if (node.type === "image") {
2506
+ markdownUrls.add(node.url);
2493
2507
  report(node.url, node.position?.start.line);
2494
2508
  }
2495
2509
  if (node.type === "htmlBlock" || node.type === "htmlInline") {
2496
- walkHtmlImages(node.htmlChildren, (src) => report(src, node.position?.start.line));
2510
+ walkHtmlImages(node.htmlChildren, (src) => {
2511
+ markdownUrls.add(src);
2512
+ report(src, node.position?.start.line);
2513
+ });
2497
2514
  }
2498
2515
  for (const child of getChildren(node)) walk(child);
2499
2516
  };
2500
2517
  for (const child of markdownDoc.children) walk(child);
2501
2518
  for (const block of blocks) {
2519
+ const authoredUrls = /* @__PURE__ */ new Set();
2502
2520
  const sources = [
2503
- block.templateOverrides,
2504
- block.templateData
2521
+ { value: block.templateOverrides, derived: false },
2522
+ { value: block.templateData, derived: true }
2505
2523
  ];
2506
- for (const source of sources) {
2524
+ for (const { value: source, derived } of sources) {
2507
2525
  if (!source) continue;
2508
2526
  for (const key of ASSET_PARAM_KEYS) {
2509
2527
  const value = source[key];
2510
2528
  if (typeof value === "string") {
2511
- report(value, block.sourceHeading?.position?.start.line, block.id);
2529
+ if (!derived) authoredUrls.add(value);
2530
+ if (!derived || !markdownUrls.has(value) && !authoredUrls.has(value)) {
2531
+ report(value, block.sourceHeading?.position?.start.line, block.id);
2532
+ }
2512
2533
  }
2513
2534
  }
2514
2535
  const images = source["images"];
2515
2536
  const list2 = typeof images === "string" ? images.split(",").map((s) => s.trim()) : Array.isArray(images) ? images.filter((i) => typeof i === "string") : [];
2516
2537
  for (const img of list2) {
2517
- report(img, block.sourceHeading?.position?.start.line, block.id);
2538
+ if (!derived) authoredUrls.add(img);
2539
+ if (!derived || !markdownUrls.has(img) && !authoredUrls.has(img)) {
2540
+ report(img, block.sourceHeading?.position?.start.line, block.id);
2541
+ }
2518
2542
  }
2519
2543
  }
2520
2544
  }