1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

upgrade katex

This commit is contained in:
Dick Choi
2016-09-22 20:28:12 +09:00
parent d1156f963d
commit 99a134494c
6 changed files with 6 additions and 10 deletions

View File

@@ -136,7 +136,7 @@ export default class MarkdownPreview extends React.Component {
} }
</style> </style>
<link rel="stylesheet" href="../node_modules/highlight.js/styles/${codeBlockTheme}.css"> <link rel="stylesheet" href="../node_modules/highlight.js/styles/${codeBlockTheme}.css">
<link rel="stylesheet" href="../resources/katex.min.css"> <link rel="stylesheet" href="../compiled/katex-style.css">
` `
this.refs.root.contentWindow.document.body.setAttribute('data-theme', theme) this.refs.root.contentWindow.document.body.setAttribute('data-theme', theme)

View File

@@ -29,7 +29,7 @@
<div id="content"></div> <div id="content"></div>
<script src="../node_modules/ace-builds/src-min/ace.js"></script> <script src="../node_modules/ace-builds/src-min/ace.js"></script>
<script src="../node_modules/ace-builds/src-min/ext-themelist.js"></script> <script src="../node_modules/ace-builds/src-min/ext-themelist.js"></script>
<script src="../resources/katex.min.js"></script> <script src="../compiled/katex.js"></script>
<script src="../compiled/react.js"></script> <script src="../compiled/react.js"></script>
<script src="../compiled/react-dom.js"></script> <script src="../compiled/react-dom.js"></script>
<script src="../compiled/redux.js"></script> <script src="../compiled/redux.js"></script>

View File

@@ -55,7 +55,7 @@
<script src="../node_modules/ace-builds/src-min/ace.js"></script> <script src="../node_modules/ace-builds/src-min/ace.js"></script>
<script src="../node_modules/ace-builds/src-min/ext-themelist.js"></script> <script src="../node_modules/ace-builds/src-min/ext-themelist.js"></script>
<script src="../resources/katex.min.js"></script> <script src="../compiled/katex.js"></script>
<script src="../compiled/react.js"></script> <script src="../compiled/react.js"></script>
<script src="../compiled/react-dom.js"></script> <script src="../compiled/react-dom.js"></script>
<script src="../compiled/redux.js"></script> <script src="../compiled/redux.js"></script>

View File

@@ -4,6 +4,8 @@
"react": "https://cdnjs.cloudflare.com/ajax/libs/react/15.0.2/react.js", "react": "https://cdnjs.cloudflare.com/ajax/libs/react/15.0.2/react.js",
"react-dom": "https://cdnjs.cloudflare.com/ajax/libs/react/15.0.2/react-dom.js", "react-dom": "https://cdnjs.cloudflare.com/ajax/libs/react/15.0.2/react-dom.js",
"redux": "https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.js", "redux": "https://cdnjs.cloudflare.com/ajax/libs/redux/3.5.2/redux.js",
"react-redux": "https://npmcdn.com/react-redux@4.4.5/dist/react-redux.min.js" "react-redux": "https://npmcdn.com/react-redux@4.4.5/dist/react-redux.min.js",
"katex": "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.js",
"katex-style": "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.6.0/katex.min.css"
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long