'use strict' ; import * as vscode from 'vscode' ; export function activate ( context ) { console . log ( 'Congratulations, your extension "graphviz-markdown-preview" is now active!' ) ; return { extendMarkdownIt ( md ) { const highlight = md . options . highlight ; md . options . highlight = ( code , lang ) => { if ( lang && lang . match ( /\bgraphviz\b/i ) ) { return `<div class="graphviz">${ code }</div>` ; } return highlight ( code , lang ) ; } ; return md ; } } ; } export function deactivate ( ) { }