Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit ccd96da

Browse files
committed
changed require() to import
1 parent b6ba821 commit ccd96da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/HtmlUtils.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ See the License for the specific language governing permissions and
1717
limitations under the License.
1818
*/
1919

20-
require('katex/dist/katex.min.css');
21-
2220
import React from 'react';
2321
import sanitizeHtml from 'sanitize-html';
2422
import * as linkify from 'linkifyjs';
@@ -29,6 +27,7 @@ import classNames from 'classnames';
2927
import EMOJIBASE_REGEX from 'emojibase-regex';
3028
import url from 'url';
3129
import katex from 'katex';
30+
import 'katex/dist/katex.min.css';
3231
import { AllHtmlEntities } from 'html-entities';
3332
import SdkConfig from './SdkConfig';
3433

0 commit comments

Comments
 (0)