dma123 commited on
Commit
d9c5286
·
verified ·
1 Parent(s): 4a46a6e

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. js/plugins/formatting.js +8 -2
js/plugins/formatting.js CHANGED
@@ -176,9 +176,15 @@ export const formattingPlugins = [
176
  const origFormulas = [];
177
  const ktSettings = {
178
  delimiters: [
179
- { left: '$$ ', right: ' $$', display: true },
180
  { left: '$', right: '$', display: false },
181
- { left: '\$$ ', right: '\ $$', display: true }
 
 
 
 
 
 
182
  ],
183
  ignoredTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code', 'option', 'table', 'svg'],
184
  throwOnError: false,
 
176
  const origFormulas = [];
177
  const ktSettings = {
178
  delimiters: [
179
+ { left: '$$', right: '$$', display: true },
180
  { left: '$', right: '$', display: false },
181
+ // { left: '\\(', right: '\\)', display: false },
182
+ { left: '\\begin{equation}', right: '\\end{equation}', display: true },
183
+ // { left: '\\begin{align}', right: '\\end{align}', display: true },
184
+ // { left: '\\begin{alignat}', right: '\\end{alignat}', display: true },
185
+ // { left: '\\begin{gather}', right: '\\end{gather}', display: true },
186
+ // { left: '\\begin{CD}', right: '\\end{CD}', display: true },
187
+ // { left: '\\[', right: '\\]', display: true }
188
  ],
189
  ignoredTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code', 'option', 'table', 'svg'],
190
  throwOnError: false,