File tree Expand file tree Collapse file tree 5 files changed +22
-23
lines changed
Expand file tree Collapse file tree 5 files changed +22
-23
lines changed Original file line number Diff line number Diff line change 3232 - name : upload artifact
3333 uses : actions/upload-artifact@v2
3434 with :
35- name : CryptoLearnWeb
35+ name : CryptoLearnWeb.zip
3636 path : |
3737 build/*
3838 docker/*
Original file line number Diff line number Diff line change 1313 "@graphql-codegen/fragment-matcher" : " ^1.17.8" ,
1414 "@graphql-codegen/typescript-operations" : " ^1.17.8" ,
1515 "@graphql-codegen/typescript-react-apollo" : " ^2.0.6" ,
16+ "@matejmazur/react-katex" : " ^3.1.3" ,
1617 "@testing-library/jest-dom" : " ^4.2.4" ,
1718 "@testing-library/react" : " ^9.5.0" ,
1819 "@testing-library/user-event" : " ^7.2.1" ,
2324 "i18next" : " ^19.7.0" ,
2425 "i18next-browser-languagedetector" : " ^6.0.1" ,
2526 "i18next-http-backend" : " ^1.0.18" ,
27+ "katex" : " ^0.13.3" ,
2628 "react" : " ^16.13.1" ,
2729 "react-dom" : " ^16.13.1" ,
2830 "react-i18next" : " ^11.7.2" ,
29- "react-katex" : " ^2.0.2" ,
3031 "react-markdown" : " ^4.3.1" ,
3132 "react-router-dom" : " ^5.2.0" ,
3233 "react-scripts" : " 3.4.3" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react'
22import ReactMarkdown from 'react-markdown'
33import SyntaxHighlighter from 'react-syntax-highlighter'
44import RemarkMathPlugin from 'remark-math'
5- import { BlockMath , InlineMath } from 'react-katex'
5+ import TeX from '@matejmazur/ react-katex'
66import AdmonitionsPlugin from "remark-containers"
77import { Callout } from './Callout'
88import { IconName , Intent } from '@blueprintjs/core'
@@ -89,8 +89,8 @@ export const Markdown: React.FC<MarkdownProps> = ({ source }) => {
8989 renderers = { {
9090 code : CodeBlock ,
9191 inlineCode : InlineCode ,
92- math : ( { value } ) => < BlockMath > { value } </ BlockMath > ,
93- inlineMath : ( { value } ) => < InlineMath > { value } </ InlineMath > ,
92+ math : ( { value } ) => < TeX block > { value } </ TeX > ,
93+ inlineMath : ( { value } ) => < TeX > { value } </ TeX > ,
9494 none : ( props ) => < MarkdownCallout intent = 'none' { ...props } /> ,
9595 primary : ( props ) => < MarkdownCallout intent = 'primary' { ...props } /> ,
9696 success : ( props ) => < MarkdownCallout intent = 'success' { ...props } /> ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments