This repository has been archived on 2024-09-09 . You can view files and clone it, but cannot push or open issues or pull requests.
c150934083
22 lines
743 B
TypeScript
22 lines
743 B
TypeScript
/*---------------------------------------------------------------------------------------------
|
|||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|||
*--------------------------------------------------------------------------------------------*/
|
|||
import type * as markdownIt from 'markdown-it';
|
|||
|
|||
import 'katex/dist/katex.min.css';
|
|||
|
|||
declare const extendMarkdownIt: undefined | (
|
|||
(f: (md: markdownIt.MarkdownIt) => void) => void
|
|||
);
|
|||
|
|||
(function () {
|
|||
const katex = require('@iktakahiro/markdown-it-katex');
|
|||
if (typeof extendMarkdownIt !== 'undefined') {
|
|||
|
|||
extendMarkdownIt((md: markdownIt.MarkdownIt) => {
|
|||
md.use(katex);
|
|||
});
|
|||
}
|
|||
}());
|