(vditor: IVditor)
| 1649 | }); |
| 1650 | }; |
| 1651 | |
| 1652 | export const renderCodeBlocks = (vditor: IVditor) => { |
| 1653 | const editor = getModeEditor(vditor); |
| 1654 | if (!editor) { |
| 1655 | return; |
| 1656 | } |
| 1657 | for (const block of editor.querySelectorAll(getCodeBlockSelector(vditor.currentMode))) { |
| 1658 | scheduleLazyCodeBlock(vditor, block as HTMLElement); |
| 1659 | } |
| 1660 | syncMathBlocksDisplayMode(editor, vditor); |
| 1661 | }; |
| 1662 | |
| 1663 | /** @deprecated use renderCodeBlocks */ |
no test coverage detected