Skip to content
Merged

Dev #77

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ following characters should be escaped: `*`, `_`, `\`, `[`, `]`, `<`.
The CodeChat Editor contains rudimentary support for diagrams created by
[Graphviz](https://graphviz.org/). For example,

| Source | Rendered |
| -------------------------------------------------------------- | ------------------------------------------------------------ |
| `<graphviz-graph graph="digraph { A -> B }"></graphviz-graph>` | <graphviz-graph graph="digraph { A -> B }"></graphviz-graph> |
| Source | Rendered |
| ----------------------------------------------------- | --------------------------------------------------- |
| `<graphviz-graph>digraph { A -> B }</graphviz-graph>` | <graphviz-graph>digraph { A -> B }</graphviz-graph> |

To edit these diagrams, use an [HTML entity
encoder/decoder](https://mothereff.in/html-entities) and a Graphviz editor such
Expand Down
12 changes: 6 additions & 6 deletions builder/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion builder/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,18 @@ fn patch_client_libs() -> io::Result<()> {

// Copy across the parts of MathJax that are needed, since bundling it is
// difficult.
remove_dir_all_if_exists("../client/static/mathjax")?;
for subdir in ["a11y", "adaptors", "input", "output", "sre", "ui"] {
quick_copy_dir(
format!("../client/node_modules/mathjax/{subdir}/"),
format!("../client/static/mathjax/{subdir}"),
None,
)?;
}
quick_copy_dir(
"../client/node_modules/mathjax/",
"../client/static/mathjax",
None,
Some("tex-chtml.js"),
)?;
quick_copy_dir(
"../client/node_modules/@mathjax/mathjax-newcm-font/chtml/",
Expand Down
8 changes: 4 additions & 4 deletions client/package.json5
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
url: 'https://github.com/bjones1/CodeChat_editor',
},
type: 'module',
version: '0.1.31',
version: '0.1.33',
dependencies: {
'@codemirror/commands': '^6.8.1',
'@codemirror/lang-cpp': '^6.0.3',
Expand All @@ -62,7 +62,7 @@
'@codemirror/view': '^6.38.2',
'@mathjax/mathjax-newcm-font': '4.0.0',
codemirror: '^6.0.2',
'graphviz-webcomponent': '^2.0.0',
'graphviz-webcomponent': 'github:bjones1/graphviz-webcomponent#dist',
mathjax: '4.0.0',
mermaid: '^11.10.1',
'npm-check-updates': '^18.0.3',
Expand All @@ -76,8 +76,8 @@
'@types/mocha': '^10.0.10',
'@types/node': '^24.3.0',
'@types/toastify-js': '^1.12.4',
'@typescript-eslint/eslint-plugin': '^8.41.0',
'@typescript-eslint/parser': '^8.41.0',
'@typescript-eslint/eslint-plugin': '^8.42.0',
'@typescript-eslint/parser': '^8.42.0',
chai: '^6.0.1',
esbuild: '^0.25.9',
eslint: '^9.34.0',
Expand Down
Loading
Loading