File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/view/hocs/withYfmHtml Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export type WithYfmHtmlBlockOptions = {
1515export type WithYfmHtmlBlockProps = {
1616 meta : TransformMeta ;
1717 yfmHtmlBlockConfig ?: IHTMLIFrameElementConfig ;
18+ /** Works only with html-extension dep version 2.7.1 and higher */
1819 htmlRuntimeConfig ?: HTMLRuntimeConfig ;
1920} ;
2021
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ export function useYfmHtmlBlockRuntime(
1010 htmlRuntimeConfig : HTMLRuntimeConfig = { } ,
1111) {
1212 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 ) ;
1415 import ( /* webpackChunkName: "yfm-html-runtime" */ '@diplodoc/html-extension/runtime' ) ;
1516 }
1617}
You can’t perform that action at this time.
0 commit comments