File tree 2 files changed +3
-1
lines changed
src/view/hocs/withYfmHtml
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export type WithYfmHtmlBlockOptions = {
15
15
export type WithYfmHtmlBlockProps = {
16
16
meta : TransformMeta ;
17
17
yfmHtmlBlockConfig ?: IHTMLIFrameElementConfig ;
18
+ /** Works only with html-extension dep version 2.7.1 and higher */
18
19
htmlRuntimeConfig ?: HTMLRuntimeConfig ;
19
20
} ;
20
21
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ export function useYfmHtmlBlockRuntime(
10
10
htmlRuntimeConfig : HTMLRuntimeConfig = { } ,
11
11
) {
12
12
if ( meta ?. script ?. includes ( runtime ) ) {
13
- setupRuntimeConfig ( htmlRuntimeConfig ) ;
13
+ // MAJOR: update html-extension peer on ^2.7.1 and remove optional chain
14
+ setupRuntimeConfig ?.( htmlRuntimeConfig ) ;
14
15
import ( /* webpackChunkName: "yfm-html-runtime" */ '@diplodoc/html-extension/runtime' ) ;
15
16
}
16
17
}
You can’t perform that action at this time.
0 commit comments