-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This addresses #845 Previously we used 'marked' and 'mathjax' in the playground, but 'markdown-it' and 'katex' in VS Code - the latter being what VS Code uses for its Markdown and LaTeX rendering in file previews, Jupyter notebooks, etc. This converts the playground, and the kata content generation, to use markdown-it and katex, and removes 'marked' and 'mathjax' from the repo. Note that KaTeX is more strict that MathJax that the LaTeX is well formed. This is probably a _good thing_ while we're authoring content. I did need to clean up quite a bit of LaTeX in testing this, and there's probably quite a bit more elsewhere to go over. (In general our LaTeX is often in poor shape. We might want to look into any 'linting' options for it). Feel free to skip the .md files and focus on the code initially. I also significantly revamped how we render markdown in a Preact components. This has led to much cleaner code, and deleting a lot of useRef and useEffect and dangerouslySetInnerHtml code, and the need to re-typeset content. (Esp. see kata.tsx and docs.tsx). --------- Co-authored-by: Mariia Mykhailova <mamykhai@microsoft.com>
- Loading branch information
1 parent
25bc315
commit 6725ad5
Showing
102 changed files
with
1,084 additions
and
855 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,7 @@ $$i+i=2i$$ | |
|
||
$$i-i=0$$ | ||
|
||
$$-1 \\cdot i=-i$$ | ||
$$-1 \cdot i=-i$$ | ||
|
||
$$(-i)^{2} = -1$$ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Following the definition, the sum of two matrices is a matrix of element-wise sums of matrix elements: | ||
|
||
$$\begin{bmatrix} 1 & 2 \\\ 3 & 4 \end{bmatrix} + \begin{bmatrix} 5 & 6 \\\ 7 & 8 \end{bmatrix} = $$ | ||
$$= \begin{bmatrix} 1 + 5 & 2 + 6 \\\ 3 + 7 & 4 + 8 \end{bmatrix} = \begin{bmatrix} 6 & 8 \\\ 10 & 12 \end{bmatrix}$$ | ||
$$\begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} + \begin{bmatrix} 5 & 6 \\ 7 & 8 \end{bmatrix} = $$ | ||
$$= \begin{bmatrix} 1 + 5 & 2 + 6 \\ 3 + 7 & 4 + 8 \end{bmatrix} = \begin{bmatrix} 6 & 8 \\ 10 & 12 \end{bmatrix}$$ | ||
|
||
@[solution]({"id": "linear_algebra__addition_solution", "codePath": "Solution.qs"}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.