@mdsvex/render 1.0.0-next.2 → 1.0.0-next.3

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.
@@ -87,10 +87,18 @@ export interface PreMeta {
87
87
  */
88
88
  pre_props(meta: string, start: number): string;
89
89
  }
90
- /** a string is escaped as a url of the source is, '' leaves the attribute out, an expression goes in braces */
90
+ /**
91
+ * a string is escaped as a url of the source is, '' leaves the attribute out,
92
+ * an expression goes in braces, a picture names an imagetools Picture, a
93
+ * markdown image renders it as a picture element and a replacement gets it
94
+ * as its src
95
+ */
91
96
  export type UrlSource = string | {
92
97
  type: 'expression';
93
98
  value: string;
99
+ } | {
100
+ type: 'picture';
101
+ value: string;
94
102
  };
95
103
  /** what replaces the src of an image or the href of a link, url is never empty, null or undefined keeps it */
96
104
  export type UrlLookup = (url: string, image: boolean) => UrlSource | null | undefined;
@@ -335,6 +343,11 @@ export declare class CursorHTMLRenderer {
335
343
  * references of a document as its labels are first met
336
344
  */
337
345
  footnotes?: FootnoteRender;
346
+ /**
347
+ * true wraps each run of two or more static root blocks in a display
348
+ * contents div, the cached render of update ignores it
349
+ */
350
+ wrap_static?: boolean;
338
351
  /** the cached render met a footnote, so each update numbers them again */
339
352
  private noted;
340
353
  constructor(opts?: {