@kernelift/markdown 1.2.1 → 1.2.2

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.
package/README.md CHANGED
@@ -271,9 +271,10 @@ const isDark = ref(true);
271
271
 
272
272
  ## Emits
273
273
 
274
- | 事件名 | 说明 | 参数 |
275
- | ----------------- | -------------- | ----------------- |
276
- | update:modelValue | 内容变化时触发 | `(value: string)` |
274
+ | 事件名 | 说明 | 参数 |
275
+ | ----------------- | ---------------------------------------- | --------------------------------- |
276
+ | update:modelValue | 内容变化时触发 | `(value: string)` |
277
+ | rendered | 渲染完成时触发(包含增量渲染和完整渲染) | `(context: string, html: string)` |
277
278
 
278
279
  ## Expose
279
280
 
package/dist/index.d.ts CHANGED
@@ -44,7 +44,10 @@ resetRenderState: () => void;
44
44
  isStreaming: Ref<boolean, boolean>;
45
45
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
46
46
  "update:modelValue": (value: string) => any;
47
+ } & {
48
+ rendered: (context: string, html: string) => any;
47
49
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
50
+ onRendered?: ((context: string, html: string) => any) | undefined;
48
51
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
49
52
  }>, {
50
53
  plugins: Array<any>;