|
core/MmlTree/SerializedMmlVisitor.ts 行204
- node.getProperty('pseudoscript') && this.setDataAttribute(data, 'pseudoscript', 'true');
复制代码
core/MmlTree/MmlNodes/mo.ts 行435-445
- protected checkPseudoScripts(mo: string) {
- const PSEUDOSCRIPTS = (this.constructor as typeof MmlMo).pseudoScripts;
- if (!mo.match(PSEUDOSCRIPTS)) return;
- const parent = this.coreParent().Parent;
- const isPseudo = !parent || !(parent.isKind('msubsup') && !parent.isKind('msub'));
- this.setProperty('pseudoscript', isPseudo);
- if (isPseudo) {
- this.attributes.setInherited('lspace', 0);
- this.attributes.setInherited('rspace', 0);
- }
- }
复制代码 |
|