mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
markdown-it: MathJax support $.$ in \text{} within $$...$$
This commit is contained in:
parent
bdf4e10c6e
commit
4ae4960358
@ -1873,3 +1873,4 @@ var clearMarkRectDivs = function() {
|
||||
var startFreshRender = function() {
|
||||
skipScrollCheckRange = null;
|
||||
};
|
||||
|
||||
|
@ -161,12 +161,12 @@ texmath.rules = {
|
||||
],
|
||||
block: [
|
||||
{ name: 'math_block_eqno',
|
||||
rex: /\${2}([^$]*?)\${2}\s*?\(([^)$\r\n]+?)\)\s*$/gmy,
|
||||
rex: /\${2}((?:[^$]|\$(?!\$))*?)\${2}\s*?\(([^)$\r\n]+?)\)\s*$/gmy,
|
||||
tmpl: '<x-eqs><x-eqn class="tex-to-render">$1</x-eqn><span>($2)</span></x-eqs>',
|
||||
tag: '$$'
|
||||
},
|
||||
{ name: 'math_block',
|
||||
rex: /\${2}([^$]*?)\${2}\s*$/gmy,
|
||||
rex: /\${2}((?:[^$]|\$(?!\$))*?)\${2}\s*$/gmy,
|
||||
tmpl: '<x-eqn class="tex-to-render">$1</x-eqn>',
|
||||
tag: '$$'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user