mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-19 12:14:24 +01:00
feat: Support LaTeX and AsciiMath via MathJax on stem.excalidraw.com
This commit is contained in:
23
src/packages/extensions/example/index.tsx
Normal file
23
src/packages/extensions/example/index.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
|
||||
import App from "../../excalidraw/example/App";
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
ExcalidrawExtensionsLib: any;
|
||||
}
|
||||
}
|
||||
const { useExtensions } = window.ExcalidrawExtensionsLib;
|
||||
|
||||
const rootElement = document.getElementById("root");
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<App
|
||||
appTitle={"Excalidraw Extensions Example"}
|
||||
useCustom={useExtensions}
|
||||
customArgs={["mathjax"]}
|
||||
/>
|
||||
</React.StrictMode>,
|
||||
rootElement,
|
||||
);
|
||||
Reference in New Issue
Block a user