Forráskód Böngészése

카텍스 링크에서 불러오는 걸로 변경

Surplus_Up (2DU) 7 éve
szülő
commit
8d6ffa815b
72 módosított fájl, 15 hozzáadás és 755 törlés
  1. 15 3
      route/tool/set_mark/namu.py
  2. 0 90
      views/main_css/katex/README.md
  3. 0 321
      views/main_css/katex/contrib/auto-render.js
  4. 0 0
      views/main_css/katex/contrib/auto-render.min.js
  5. 0 14
      views/main_css/katex/contrib/copy-tex.css
  6. 0 191
      views/main_css/katex/contrib/copy-tex.js
  7. 0 1
      views/main_css/katex/contrib/copy-tex.min.css
  8. 0 0
      views/main_css/katex/contrib/copy-tex.min.js
  9. 0 134
      views/main_css/katex/contrib/mathtex-script-type.js
  10. 0 1
      views/main_css/katex/contrib/mathtex-script-type.min.js
  11. BIN
      views/main_css/katex/fonts/KaTeX_AMS-Regular.ttf
  12. BIN
      views/main_css/katex/fonts/KaTeX_AMS-Regular.woff
  13. BIN
      views/main_css/katex/fonts/KaTeX_AMS-Regular.woff2
  14. BIN
      views/main_css/katex/fonts/KaTeX_Caligraphic-Bold.ttf
  15. BIN
      views/main_css/katex/fonts/KaTeX_Caligraphic-Bold.woff
  16. BIN
      views/main_css/katex/fonts/KaTeX_Caligraphic-Bold.woff2
  17. BIN
      views/main_css/katex/fonts/KaTeX_Caligraphic-Regular.ttf
  18. BIN
      views/main_css/katex/fonts/KaTeX_Caligraphic-Regular.woff
  19. BIN
      views/main_css/katex/fonts/KaTeX_Caligraphic-Regular.woff2
  20. BIN
      views/main_css/katex/fonts/KaTeX_Fraktur-Bold.ttf
  21. BIN
      views/main_css/katex/fonts/KaTeX_Fraktur-Bold.woff
  22. BIN
      views/main_css/katex/fonts/KaTeX_Fraktur-Bold.woff2
  23. BIN
      views/main_css/katex/fonts/KaTeX_Fraktur-Regular.ttf
  24. BIN
      views/main_css/katex/fonts/KaTeX_Fraktur-Regular.woff
  25. BIN
      views/main_css/katex/fonts/KaTeX_Fraktur-Regular.woff2
  26. BIN
      views/main_css/katex/fonts/KaTeX_Main-Bold.ttf
  27. BIN
      views/main_css/katex/fonts/KaTeX_Main-Bold.woff
  28. BIN
      views/main_css/katex/fonts/KaTeX_Main-Bold.woff2
  29. BIN
      views/main_css/katex/fonts/KaTeX_Main-BoldItalic.ttf
  30. BIN
      views/main_css/katex/fonts/KaTeX_Main-BoldItalic.woff
  31. BIN
      views/main_css/katex/fonts/KaTeX_Main-BoldItalic.woff2
  32. BIN
      views/main_css/katex/fonts/KaTeX_Main-Italic.ttf
  33. BIN
      views/main_css/katex/fonts/KaTeX_Main-Italic.woff
  34. BIN
      views/main_css/katex/fonts/KaTeX_Main-Italic.woff2
  35. BIN
      views/main_css/katex/fonts/KaTeX_Main-Regular.ttf
  36. BIN
      views/main_css/katex/fonts/KaTeX_Main-Regular.woff
  37. BIN
      views/main_css/katex/fonts/KaTeX_Main-Regular.woff2
  38. BIN
      views/main_css/katex/fonts/KaTeX_Math-BoldItalic.ttf
  39. BIN
      views/main_css/katex/fonts/KaTeX_Math-BoldItalic.woff
  40. BIN
      views/main_css/katex/fonts/KaTeX_Math-BoldItalic.woff2
  41. BIN
      views/main_css/katex/fonts/KaTeX_Math-Italic.ttf
  42. BIN
      views/main_css/katex/fonts/KaTeX_Math-Italic.woff
  43. BIN
      views/main_css/katex/fonts/KaTeX_Math-Italic.woff2
  44. BIN
      views/main_css/katex/fonts/KaTeX_SansSerif-Bold.ttf
  45. BIN
      views/main_css/katex/fonts/KaTeX_SansSerif-Bold.woff
  46. BIN
      views/main_css/katex/fonts/KaTeX_SansSerif-Bold.woff2
  47. BIN
      views/main_css/katex/fonts/KaTeX_SansSerif-Italic.ttf
  48. BIN
      views/main_css/katex/fonts/KaTeX_SansSerif-Italic.woff
  49. BIN
      views/main_css/katex/fonts/KaTeX_SansSerif-Italic.woff2
  50. BIN
      views/main_css/katex/fonts/KaTeX_SansSerif-Regular.ttf
  51. BIN
      views/main_css/katex/fonts/KaTeX_SansSerif-Regular.woff
  52. BIN
      views/main_css/katex/fonts/KaTeX_SansSerif-Regular.woff2
  53. BIN
      views/main_css/katex/fonts/KaTeX_Script-Regular.ttf
  54. BIN
      views/main_css/katex/fonts/KaTeX_Script-Regular.woff
  55. BIN
      views/main_css/katex/fonts/KaTeX_Script-Regular.woff2
  56. BIN
      views/main_css/katex/fonts/KaTeX_Size1-Regular.ttf
  57. BIN
      views/main_css/katex/fonts/KaTeX_Size1-Regular.woff
  58. BIN
      views/main_css/katex/fonts/KaTeX_Size1-Regular.woff2
  59. BIN
      views/main_css/katex/fonts/KaTeX_Size2-Regular.ttf
  60. BIN
      views/main_css/katex/fonts/KaTeX_Size2-Regular.woff
  61. BIN
      views/main_css/katex/fonts/KaTeX_Size2-Regular.woff2
  62. BIN
      views/main_css/katex/fonts/KaTeX_Size3-Regular.ttf
  63. BIN
      views/main_css/katex/fonts/KaTeX_Size3-Regular.woff
  64. BIN
      views/main_css/katex/fonts/KaTeX_Size3-Regular.woff2
  65. BIN
      views/main_css/katex/fonts/KaTeX_Size4-Regular.ttf
  66. BIN
      views/main_css/katex/fonts/KaTeX_Size4-Regular.woff
  67. BIN
      views/main_css/katex/fonts/KaTeX_Size4-Regular.woff2
  68. BIN
      views/main_css/katex/fonts/KaTeX_Typewriter-Regular.ttf
  69. BIN
      views/main_css/katex/fonts/KaTeX_Typewriter-Regular.woff
  70. BIN
      views/main_css/katex/fonts/KaTeX_Typewriter-Regular.woff2
  71. 0 0
      views/main_css/katex/katex.min.css
  72. 0 0
      views/main_css/katex/katex.min.js

+ 15 - 3
route/tool/set_mark/namu.py

@@ -482,8 +482,13 @@ def namu(conn, data, title, main_num):
         if math:
             if first == 0:
                 plus_data += '''
-                    <link rel="stylesheet" href="/views/main_css/katex/katex.min.css">
-                    <script src="/views/main_css/katex/katex.min.js"></script>
+                    <link   rel="stylesheet"
+                            href="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/katex.min.css"
+                            integrity="sha384-dbVIfZGuN1Yq7/1Ocstc1lUEm+AT+/rCkibIcC/OmWo5f0EA48Vf8CytHzGrSwbQ"
+                            crossorigin="anonymous">
+                    <script src="https://cdn.jsdelivr.net/npm/katex@0.10.1/dist/katex.min.js"
+                            integrity="sha384-2BKqo+exmr9su6dir+qCw08N2ZKRucY4PrGQPPWU1A7FtlCGjmEGFqXCv5nyM5Ij"
+                            crossorigin="anonymous"></script>
                 '''
 
             math = math.groups()[0]
@@ -492,7 +497,14 @@ def namu(conn, data, title, main_num):
             
             data = math_re.sub('<span id="math_' + str(first) + '"></span>', data, 1)
 
-            plus_data += '<script>katex.render("' + math.replace('\\', '\\\\').replace('&lt;', '<').replace('&gt;', '>') +'", document.getElementById("math_' + str(first) + '"));</script>'
+            plus_data += '''
+                <script>
+                    katex.render(
+                        "''' + math.replace('\\', '\\\\').replace('&lt;', '<').replace('&gt;', '>') + '''",
+                        document.getElementById("math_''' + str(first) + '''")
+                    );
+            </script>
+            '''
         else:
             break
             

+ 0 - 90
views/main_css/katex/README.md

@@ -1,90 +0,0 @@
-# [<img src="https://cdn.rawgit.com/Khan/KaTeX/84189cd3adae24d92e766d14eb80d6e54f3c7dca/katex-logo.svg" width="130" alt="KaTeX">](https://khan.github.io/KaTeX/)
-[![npm](https://img.shields.io/npm/v/katex.svg)](https://www.npmjs.com/package/katex)
-[![CircleCI](https://circleci.com/gh/Khan/KaTeX.svg?style=shield)](https://circleci.com/gh/Khan/KaTeX)
-[![codecov](https://codecov.io/gh/Khan/KaTeX/branch/master/graph/badge.svg)](https://codecov.io/gh/Khan/KaTeX)
-[![Join the chat at https://gitter.im/Khan/KaTeX](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Khan/KaTeX?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Greenkeeper badge](https://badges.greenkeeper.io/Khan/KaTeX.svg)](https://greenkeeper.io/)
-[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/katex/badge?style=rounded)](https://www.jsdelivr.com/package/npm/katex)
-![](https://img.badgesize.io/Khan/KaTeX/v0.10.0-rc.1/dist/katex.min.js?compression=gzip)
-
-KaTeX is a fast, easy-to-use JavaScript library for TeX math rendering on the web.
-
- * **Fast:** KaTeX renders its math synchronously and doesn't need to reflow the page. See how it compares to a competitor in [this speed test](http://www.intmath.com/cg5/katex-mathjax-comparison.php).
- * **Print quality:** KaTeX’s layout is based on Donald Knuth’s TeX, the gold standard for math typesetting.
- * **Self contained:** KaTeX has no dependencies and can easily be bundled with your website resources.
- * **Server side rendering:** KaTeX produces the same output regardless of browser or environment, so you can pre-render expressions using Node.js and send them as plain HTML.
-
-KaTeX is compatible with all major browsers, including Chrome, Safari, Firefox, Opera, Edge, and IE 9–11.
-
-KaTeX supports much (but not all) of LaTeX and many LaTeX packages. See the [list of supported functions](https://khan.github.io/KaTeX/docs/supported.html).
-
-Try out KaTeX [on the demo page](https://khan.github.io/KaTeX/#demo)!
-
-## Getting started
-
-### Starter template
-
-```html
-<!DOCTYPE html>
-<!-- KaTeX requires the use of the HTML5 doctype. Without it, KaTeX may not render properly -->
-<html>
-  <head>
-    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.css" integrity="sha384-D+9gmBxUQogRLqvARvNLmA9hS2x//eK1FhVb9PiU86gmcrBrJAQT8okdJ4LMp2uv" crossorigin="anonymous">
-
-    <!-- The loading of KaTeX is deferred to speed up page rendering -->
-    <script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/katex.min.js" integrity="sha384-483A6DwYfKeDa0Q52fJmxFXkcPCFfnXMoXblOkJ4JcA8zATN6Tm78UNL72AKk+0O" crossorigin="anonymous"></script>
-
-    <!-- To automatically render math in text elements, include the auto-render extension: -->
-    <script defer src="https://cdn.jsdelivr.net/npm/katex@0.10.0-rc.1/dist/contrib/auto-render.min.js" integrity="sha384-yACMu8JWxKzSp/C1YV86pzGiQ/l1YUfE8oPuahJQxzehAjEt2GiQuy/BIvl9KyeF" crossorigin="anonymous"
-        onload="renderMathInElement(document.body);"></script>
-  </head>
-  ...
-</html>
-```
-
-You can also [download KaTeX](https://github.com/khan/katex/releases) and host it yourself.
-
-For details on how to configure auto-render extension, refer to [the documentation](https://khan.github.io/KaTeX/docs/autorender.html).
-
-### API
-
-Call `katex.render` to render a TeX expression directly into a DOM element.
-For example:
-
-```js
-katex.render("c = \\pm\\sqrt{a^2 + b^2}", element, {
-    throwOnError: false
-});
-```
-
-Call `katex.renderToString` to generate an HTML string of the rendered math,
-e.g., for server-side rendering.  For example:
-
-```js
-var html = katex.renderToString("c = \\pm\\sqrt{a^2 + b^2}", {
-    throwOnError: false
-});
-// '<span class="katex">...</span>'
-```
-
-Make sure to include the CSS and font files in both cases.
-If you are doing all rendering on the server, there is no need to include the
-JavaScript on the client.
-
-The examples above use the `throwOnError: false` option, which renders invalid
-inputs as the TeX source code in red (by default), with the error message as
-hover text.  For other available options, see the
-[API documentation](https://khan.github.io/KaTeX/docs/api.html),
-[options documentation](https://khan.github.io/KaTeX/docs/options.html), and
-[handling errors documentation](https://khan.github.io/KaTeX/docs/error.html).
-
-## Demo and Documentation
-
-Learn more about using KaTeX [on the website](https://khan.github.io/KaTeX)!
-
-## Contributing
-
-See [CONTRIBUTING.md](CONTRIBUTING.md)
-
-## License
-
-KaTeX is licensed under the [MIT License](http://opensource.org/licenses/MIT).

+ 0 - 321
views/main_css/katex/contrib/auto-render.js

@@ -1,321 +0,0 @@
-(function webpackUniversalModuleDefinition(root, factory) {
-	if(typeof exports === 'object' && typeof module === 'object')
-		module.exports = factory(require("katex"));
-	else if(typeof define === 'function' && define.amd)
-		define(["katex"], factory);
-	else if(typeof exports === 'object')
-		exports["renderMathInElement"] = factory(require("katex"));
-	else
-		root["renderMathInElement"] = factory(root["katex"]);
-})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__0__) {
-return /******/ (function(modules) { // webpackBootstrap
-/******/ 	// The module cache
-/******/ 	var installedModules = {};
-/******/
-/******/ 	// The require function
-/******/ 	function __webpack_require__(moduleId) {
-/******/
-/******/ 		// Check if module is in cache
-/******/ 		if(installedModules[moduleId]) {
-/******/ 			return installedModules[moduleId].exports;
-/******/ 		}
-/******/ 		// Create a new module (and put it into the cache)
-/******/ 		var module = installedModules[moduleId] = {
-/******/ 			i: moduleId,
-/******/ 			l: false,
-/******/ 			exports: {}
-/******/ 		};
-/******/
-/******/ 		// Execute the module function
-/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
-/******/
-/******/ 		// Flag the module as loaded
-/******/ 		module.l = true;
-/******/
-/******/ 		// Return the exports of the module
-/******/ 		return module.exports;
-/******/ 	}
-/******/
-/******/
-/******/ 	// expose the modules object (__webpack_modules__)
-/******/ 	__webpack_require__.m = modules;
-/******/
-/******/ 	// expose the module cache
-/******/ 	__webpack_require__.c = installedModules;
-/******/
-/******/ 	// define getter function for harmony exports
-/******/ 	__webpack_require__.d = function(exports, name, getter) {
-/******/ 		if(!__webpack_require__.o(exports, name)) {
-/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
-/******/ 		}
-/******/ 	};
-/******/
-/******/ 	// define __esModule on exports
-/******/ 	__webpack_require__.r = function(exports) {
-/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
-/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
-/******/ 		}
-/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
-/******/ 	};
-/******/
-/******/ 	// create a fake namespace object
-/******/ 	// mode & 1: value is a module id, require it
-/******/ 	// mode & 2: merge all properties of value into the ns
-/******/ 	// mode & 4: return value when already ns object
-/******/ 	// mode & 8|1: behave like require
-/******/ 	__webpack_require__.t = function(value, mode) {
-/******/ 		if(mode & 1) value = __webpack_require__(value);
-/******/ 		if(mode & 8) return value;
-/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
-/******/ 		var ns = Object.create(null);
-/******/ 		__webpack_require__.r(ns);
-/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
-/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
-/******/ 		return ns;
-/******/ 	};
-/******/
-/******/ 	// getDefaultExport function for compatibility with non-harmony modules
-/******/ 	__webpack_require__.n = function(module) {
-/******/ 		var getter = module && module.__esModule ?
-/******/ 			function getDefault() { return module['default']; } :
-/******/ 			function getModuleExports() { return module; };
-/******/ 		__webpack_require__.d(getter, 'a', getter);
-/******/ 		return getter;
-/******/ 	};
-/******/
-/******/ 	// Object.prototype.hasOwnProperty.call
-/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
-/******/
-/******/ 	// __webpack_public_path__
-/******/ 	__webpack_require__.p = "";
-/******/
-/******/
-/******/ 	// Load entry module and return exports
-/******/ 	return __webpack_require__(__webpack_require__.s = 1);
-/******/ })
-/************************************************************************/
-/******/ ([
-/* 0 */
-/***/ (function(module, exports) {
-
-module.exports = __WEBPACK_EXTERNAL_MODULE__0__;
-
-/***/ }),
-/* 1 */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-__webpack_require__.r(__webpack_exports__);
-
-// EXTERNAL MODULE: external "katex"
-var external_katex_ = __webpack_require__(0);
-var external_katex_default = /*#__PURE__*/__webpack_require__.n(external_katex_);
-
-// CONCATENATED MODULE: ./contrib/auto-render/splitAtDelimiters.js
-/* eslint no-constant-condition:0 */
-var findEndOfMath = function findEndOfMath(delimiter, text, startIndex) {
-    // Adapted from
-    // https://github.com/Khan/perseus/blob/master/src/perseus-markdown.jsx
-    var index = startIndex;
-    var braceLevel = 0;
-
-    var delimLength = delimiter.length;
-
-    while (index < text.length) {
-        var character = text[index];
-
-        if (braceLevel <= 0 && text.slice(index, index + delimLength) === delimiter) {
-            return index;
-        } else if (character === "\\") {
-            index++;
-        } else if (character === "{") {
-            braceLevel++;
-        } else if (character === "}") {
-            braceLevel--;
-        }
-
-        index++;
-    }
-
-    return -1;
-};
-
-var splitAtDelimiters = function splitAtDelimiters(startData, leftDelim, rightDelim, display) {
-    var finalData = [];
-
-    for (var i = 0; i < startData.length; i++) {
-        if (startData[i].type === "text") {
-            var text = startData[i].data;
-
-            var lookingForLeft = true;
-            var currIndex = 0;
-            var nextIndex = void 0;
-
-            nextIndex = text.indexOf(leftDelim);
-            if (nextIndex !== -1) {
-                currIndex = nextIndex;
-                finalData.push({
-                    type: "text",
-                    data: text.slice(0, currIndex)
-                });
-                lookingForLeft = false;
-            }
-
-            while (true) {
-                if (lookingForLeft) {
-                    nextIndex = text.indexOf(leftDelim, currIndex);
-                    if (nextIndex === -1) {
-                        break;
-                    }
-
-                    finalData.push({
-                        type: "text",
-                        data: text.slice(currIndex, nextIndex)
-                    });
-
-                    currIndex = nextIndex;
-                } else {
-                    nextIndex = findEndOfMath(rightDelim, text, currIndex + leftDelim.length);
-                    if (nextIndex === -1) {
-                        break;
-                    }
-
-                    finalData.push({
-                        type: "math",
-                        data: text.slice(currIndex + leftDelim.length, nextIndex),
-                        rawData: text.slice(currIndex, nextIndex + rightDelim.length),
-                        display: display
-                    });
-
-                    currIndex = nextIndex + rightDelim.length;
-                }
-
-                lookingForLeft = !lookingForLeft;
-            }
-
-            finalData.push({
-                type: "text",
-                data: text.slice(currIndex)
-            });
-        } else {
-            finalData.push(startData[i]);
-        }
-    }
-
-    return finalData;
-};
-
-/* harmony default export */ var auto_render_splitAtDelimiters = (splitAtDelimiters);
-// CONCATENATED MODULE: ./contrib/auto-render/auto-render.js
-/* eslint no-console:0 */
-
-
-
-
-var auto_render_splitWithDelimiters = function splitWithDelimiters(text, delimiters) {
-    var data = [{ type: "text", data: text }];
-    for (var i = 0; i < delimiters.length; i++) {
-        var delimiter = delimiters[i];
-        data = auto_render_splitAtDelimiters(data, delimiter.left, delimiter.right, delimiter.display || false);
-    }
-    return data;
-};
-
-/* Note: optionsCopy is mutated by this method. If it is ever exposed in the
- * API, we should copy it before mutating.
- */
-var auto_render_renderMathInText = function renderMathInText(text, optionsCopy) {
-    var data = auto_render_splitWithDelimiters(text, optionsCopy.delimiters);
-    var fragment = document.createDocumentFragment();
-
-    for (var i = 0; i < data.length; i++) {
-        if (data[i].type === "text") {
-            fragment.appendChild(document.createTextNode(data[i].data));
-        } else {
-            var span = document.createElement("span");
-            var math = data[i].data;
-            // Override any display mode defined in the settings with that
-            // defined by the text itself
-            optionsCopy.displayMode = data[i].display;
-            try {
-                external_katex_default.a.render(math, span, optionsCopy);
-            } catch (e) {
-                if (!(e instanceof external_katex_default.a.ParseError)) {
-                    throw e;
-                }
-                optionsCopy.errorCallback("KaTeX auto-render: Failed to parse `" + data[i].data + "` with ", e);
-                fragment.appendChild(document.createTextNode(data[i].rawData));
-                continue;
-            }
-            fragment.appendChild(span);
-        }
-    }
-
-    return fragment;
-};
-
-var renderElem = function renderElem(elem, optionsCopy) {
-    for (var i = 0; i < elem.childNodes.length; i++) {
-        var childNode = elem.childNodes[i];
-        if (childNode.nodeType === 3) {
-            // Text node
-            var frag = auto_render_renderMathInText(childNode.textContent, optionsCopy);
-            i += frag.childNodes.length - 1;
-            elem.replaceChild(frag, childNode);
-        } else if (childNode.nodeType === 1) {
-            (function () {
-                // Element node
-                var className = ' ' + childNode.className + ' ';
-                var shouldRender = optionsCopy.ignoredTags.indexOf(childNode.nodeName.toLowerCase()) === -1 && optionsCopy.ignoredClasses.every(function (x) {
-                    return className.indexOf(' ' + x + ' ') === -1;
-                });
-
-                if (shouldRender) {
-                    renderElem(childNode, optionsCopy);
-                }
-            })();
-        }
-        // Otherwise, it's something else, and ignore it.
-    }
-};
-
-var renderMathInElement = function renderMathInElement(elem, options) {
-    if (!elem) {
-        throw new Error("No element provided to render");
-    }
-
-    var optionsCopy = {};
-
-    // Object.assign(optionsCopy, option)
-    for (var option in options) {
-        if (options.hasOwnProperty(option)) {
-            optionsCopy[option] = options[option];
-        }
-    }
-
-    // default options
-    optionsCopy.delimiters = optionsCopy.delimiters || [{ left: "$$", right: "$$", display: true }, { left: "\\(", right: "\\)", display: false },
-    // LaTeX uses $…$, but it ruins the display of normal `$` in text:
-    // {left: "$", right: "$", display: false},
-
-    //  \[…\] must come last in this array. Otherwise, renderMathInElement
-    //  will search for \[ before it searches for $$ or  \(
-    // That makes it susceptible to finding a \\[0.3em] row delimiter and
-    // treating it as if it were the start of a KaTeX math zone.
-    { left: "\\[", right: "\\]", display: true }];
-    optionsCopy.ignoredTags = optionsCopy.ignoredTags || ["script", "noscript", "style", "textarea", "pre", "code"];
-    optionsCopy.ignoredClasses = optionsCopy.ignoredClasses || [];
-    optionsCopy.errorCallback = optionsCopy.errorCallback || console.error;
-
-    // Enable sharing of global macros defined via `\gdef` between different
-    // math elements within a single call to `renderMathInElement`.
-    optionsCopy.macros = optionsCopy.macros || {};
-
-    renderElem(elem, optionsCopy);
-};
-
-/* harmony default export */ var auto_render = __webpack_exports__["default"] = (renderMathInElement);
-
-/***/ })
-/******/ ])["default"];
-});

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
views/main_css/katex/contrib/auto-render.min.js


+ 0 - 14
views/main_css/katex/contrib/copy-tex.css

@@ -1,14 +0,0 @@
-/* Force selection of entire .katex/.katex-display blocks, so that we can
- * copy/paste the entire source code.  If you omit this CSS, partial
- * selections of a formula will work, but will copy the ugly HTML
- * representation instead of the LaTeX source code.  (Full selections will
- * still produce the LaTeX source code.)
- */
-.katex,
-.katex-display {
-    user-select: all;
-    -moz-user-select: all;
-    -webkit-user-select: all;
-    -ms-user-select: all;
-}
-

+ 0 - 191
views/main_css/katex/contrib/copy-tex.js

@@ -1,191 +0,0 @@
-(function webpackUniversalModuleDefinition(root, factory) {
-	if(typeof exports === 'object' && typeof module === 'object')
-		module.exports = factory();
-	else if(typeof define === 'function' && define.amd)
-		define([], factory);
-	else {
-		var a = factory();
-		for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
-	}
-})((typeof self !== 'undefined' ? self : this), function() {
-return /******/ (function(modules) { // webpackBootstrap
-/******/ 	// The module cache
-/******/ 	var installedModules = {};
-/******/
-/******/ 	// The require function
-/******/ 	function __webpack_require__(moduleId) {
-/******/
-/******/ 		// Check if module is in cache
-/******/ 		if(installedModules[moduleId]) {
-/******/ 			return installedModules[moduleId].exports;
-/******/ 		}
-/******/ 		// Create a new module (and put it into the cache)
-/******/ 		var module = installedModules[moduleId] = {
-/******/ 			i: moduleId,
-/******/ 			l: false,
-/******/ 			exports: {}
-/******/ 		};
-/******/
-/******/ 		// Execute the module function
-/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
-/******/
-/******/ 		// Flag the module as loaded
-/******/ 		module.l = true;
-/******/
-/******/ 		// Return the exports of the module
-/******/ 		return module.exports;
-/******/ 	}
-/******/
-/******/
-/******/ 	// expose the modules object (__webpack_modules__)
-/******/ 	__webpack_require__.m = modules;
-/******/
-/******/ 	// expose the module cache
-/******/ 	__webpack_require__.c = installedModules;
-/******/
-/******/ 	// define getter function for harmony exports
-/******/ 	__webpack_require__.d = function(exports, name, getter) {
-/******/ 		if(!__webpack_require__.o(exports, name)) {
-/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
-/******/ 		}
-/******/ 	};
-/******/
-/******/ 	// define __esModule on exports
-/******/ 	__webpack_require__.r = function(exports) {
-/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
-/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
-/******/ 		}
-/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
-/******/ 	};
-/******/
-/******/ 	// create a fake namespace object
-/******/ 	// mode & 1: value is a module id, require it
-/******/ 	// mode & 2: merge all properties of value into the ns
-/******/ 	// mode & 4: return value when already ns object
-/******/ 	// mode & 8|1: behave like require
-/******/ 	__webpack_require__.t = function(value, mode) {
-/******/ 		if(mode & 1) value = __webpack_require__(value);
-/******/ 		if(mode & 8) return value;
-/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
-/******/ 		var ns = Object.create(null);
-/******/ 		__webpack_require__.r(ns);
-/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
-/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
-/******/ 		return ns;
-/******/ 	};
-/******/
-/******/ 	// getDefaultExport function for compatibility with non-harmony modules
-/******/ 	__webpack_require__.n = function(module) {
-/******/ 		var getter = module && module.__esModule ?
-/******/ 			function getDefault() { return module['default']; } :
-/******/ 			function getModuleExports() { return module; };
-/******/ 		__webpack_require__.d(getter, 'a', getter);
-/******/ 		return getter;
-/******/ 	};
-/******/
-/******/ 	// Object.prototype.hasOwnProperty.call
-/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
-/******/
-/******/ 	// __webpack_public_path__
-/******/ 	__webpack_require__.p = "";
-/******/
-/******/
-/******/ 	// Load entry module and return exports
-/******/ 	return __webpack_require__(__webpack_require__.s = 2);
-/******/ })
-/************************************************************************/
-/******/ ([
-/* 0 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// extracted by mini-css-extract-plugin
-
-/***/ }),
-/* 1 */,
-/* 2 */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-__webpack_require__.r(__webpack_exports__);
-
-// EXTERNAL MODULE: ./contrib/copy-tex/copy-tex.css
-var copy_tex = __webpack_require__(0);
-
-// CONCATENATED MODULE: ./contrib/copy-tex/katex2tex.js
-// Set these to how you want inline and display math to be delimited.
-var defaultCopyDelimiters = {
-    inline: ['$', '$'], // alternative: ['\(', '\)']
-    display: ['$$', '$$'] // alternative: ['\[', '\]']
-};
-
-// Replace .katex elements with their TeX source (<annotation> element).
-// Modifies fragment in-place.  Useful for writing your own 'copy' handler,
-// as in copy-tex.js.
-var katexReplaceWithTex = function katexReplaceWithTex(fragment) {
-    var copyDelimiters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultCopyDelimiters;
-
-    // Remove .katex-html blocks that are preceded by .katex-mathml blocks
-    // (which will get replaced below).
-    var katexHtml = fragment.querySelectorAll('.katex-mathml + .katex-html');
-    for (var i = 0; i < katexHtml.length; i++) {
-        var element = katexHtml[i];
-        if (element.remove) {
-            element.remove(null);
-        } else {
-            element.parentNode.removeChild(element);
-        }
-    }
-    // Replace .katex-mathml elements with their annotation (TeX source)
-    // descendant, with inline delimiters.
-    var katexMathml = fragment.querySelectorAll('.katex-mathml');
-    for (var _i = 0; _i < katexMathml.length; _i++) {
-        var _element = katexMathml[_i];
-        var texSource = _element.querySelector('annotation');
-        if (texSource) {
-            if (_element.replaceWith) {
-                _element.replaceWith(texSource);
-            } else {
-                _element.parentNode.replaceChild(texSource, _element);
-            }
-            texSource.innerHTML = copyDelimiters.inline[0] + texSource.innerHTML + copyDelimiters.inline[1];
-        }
-    }
-    // Switch display math to display delimiters.
-    var displays = fragment.querySelectorAll('.katex-display annotation');
-    for (var _i2 = 0; _i2 < displays.length; _i2++) {
-        var _element2 = displays[_i2];
-        _element2.innerHTML = copyDelimiters.display[0] + _element2.innerHTML.substr(copyDelimiters.inline[0].length, _element2.innerHTML.length - copyDelimiters.inline[0].length - copyDelimiters.inline[1].length) + copyDelimiters.display[1];
-    }
-    return fragment;
-};
-
-/* harmony default export */ var katex2tex = (katexReplaceWithTex);
-// CONCATENATED MODULE: ./contrib/copy-tex/copy-tex.js
-
-
-
-// Global copy handler to modify behavior on .katex elements.
-document.addEventListener('copy', function (event) {
-    var selection = window.getSelection();
-    if (selection.isCollapsed) {
-        return; // default action OK if selection is empty
-    }
-    var fragment = selection.getRangeAt(0).cloneContents();
-    if (!fragment.querySelector('.katex-mathml')) {
-        return; // default action OK if no .katex-mathml elements
-    }
-    // Preserve usual HTML copy/paste behavior.
-    var html = [];
-    for (var i = 0; i < fragment.childNodes.length; i++) {
-        html.push(fragment.childNodes[i].outerHTML);
-    }
-    event.clipboardData.setData('text/html', html.join(''));
-    // Rewrite plain-text version.
-    event.clipboardData.setData('text/plain', katex2tex(fragment).textContent);
-    // Prevent normal copy handling.
-    event.preventDefault();
-});
-
-/***/ })
-/******/ ])["default"];
-});

+ 0 - 1
views/main_css/katex/contrib/copy-tex.min.css

@@ -1 +0,0 @@
-.katex,.katex-display{-moz-user-select:all;-ms-user-select:all;-webkit-user-select:all;user-select:all}

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
views/main_css/katex/contrib/copy-tex.min.js


+ 0 - 134
views/main_css/katex/contrib/mathtex-script-type.js

@@ -1,134 +0,0 @@
-(function webpackUniversalModuleDefinition(root, factory) {
-	if(typeof exports === 'object' && typeof module === 'object')
-		module.exports = factory(require("katex"));
-	else if(typeof define === 'function' && define.amd)
-		define(["katex"], factory);
-	else {
-		var a = typeof exports === 'object' ? factory(require("katex")) : factory(root["katex"]);
-		for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
-	}
-})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__0__) {
-return /******/ (function(modules) { // webpackBootstrap
-/******/ 	// The module cache
-/******/ 	var installedModules = {};
-/******/
-/******/ 	// The require function
-/******/ 	function __webpack_require__(moduleId) {
-/******/
-/******/ 		// Check if module is in cache
-/******/ 		if(installedModules[moduleId]) {
-/******/ 			return installedModules[moduleId].exports;
-/******/ 		}
-/******/ 		// Create a new module (and put it into the cache)
-/******/ 		var module = installedModules[moduleId] = {
-/******/ 			i: moduleId,
-/******/ 			l: false,
-/******/ 			exports: {}
-/******/ 		};
-/******/
-/******/ 		// Execute the module function
-/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
-/******/
-/******/ 		// Flag the module as loaded
-/******/ 		module.l = true;
-/******/
-/******/ 		// Return the exports of the module
-/******/ 		return module.exports;
-/******/ 	}
-/******/
-/******/
-/******/ 	// expose the modules object (__webpack_modules__)
-/******/ 	__webpack_require__.m = modules;
-/******/
-/******/ 	// expose the module cache
-/******/ 	__webpack_require__.c = installedModules;
-/******/
-/******/ 	// define getter function for harmony exports
-/******/ 	__webpack_require__.d = function(exports, name, getter) {
-/******/ 		if(!__webpack_require__.o(exports, name)) {
-/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
-/******/ 		}
-/******/ 	};
-/******/
-/******/ 	// define __esModule on exports
-/******/ 	__webpack_require__.r = function(exports) {
-/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
-/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
-/******/ 		}
-/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
-/******/ 	};
-/******/
-/******/ 	// create a fake namespace object
-/******/ 	// mode & 1: value is a module id, require it
-/******/ 	// mode & 2: merge all properties of value into the ns
-/******/ 	// mode & 4: return value when already ns object
-/******/ 	// mode & 8|1: behave like require
-/******/ 	__webpack_require__.t = function(value, mode) {
-/******/ 		if(mode & 1) value = __webpack_require__(value);
-/******/ 		if(mode & 8) return value;
-/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
-/******/ 		var ns = Object.create(null);
-/******/ 		__webpack_require__.r(ns);
-/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
-/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
-/******/ 		return ns;
-/******/ 	};
-/******/
-/******/ 	// getDefaultExport function for compatibility with non-harmony modules
-/******/ 	__webpack_require__.n = function(module) {
-/******/ 		var getter = module && module.__esModule ?
-/******/ 			function getDefault() { return module['default']; } :
-/******/ 			function getModuleExports() { return module; };
-/******/ 		__webpack_require__.d(getter, 'a', getter);
-/******/ 		return getter;
-/******/ 	};
-/******/
-/******/ 	// Object.prototype.hasOwnProperty.call
-/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
-/******/
-/******/ 	// __webpack_public_path__
-/******/ 	__webpack_require__.p = "";
-/******/
-/******/
-/******/ 	// Load entry module and return exports
-/******/ 	return __webpack_require__(__webpack_require__.s = 1);
-/******/ })
-/************************************************************************/
-/******/ ([
-/* 0 */
-/***/ (function(module, exports) {
-
-module.exports = __WEBPACK_EXTERNAL_MODULE__0__;
-
-/***/ }),
-/* 1 */
-/***/ (function(module, __webpack_exports__, __webpack_require__) {
-
-"use strict";
-__webpack_require__.r(__webpack_exports__);
-/* harmony import */ var katex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
-/* harmony import */ var katex__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(katex__WEBPACK_IMPORTED_MODULE_0__);
-
-
-var scripts = document.body.getElementsByTagName("script");
-scripts = Array.prototype.slice.call(scripts);
-scripts.forEach(function (script) {
-    if (!script.type || !script.type.match(/math\/tex/i)) {
-        return -1;
-    }
-    var display = script.type.match(/mode\s*=\s*display(;|\s|\n|$)/) != null;
-
-    var katexElement = document.createElement(display ? "div" : "span");
-    katexElement.setAttribute("class", display ? "equation" : "inline-equation");
-    try {
-        katex__WEBPACK_IMPORTED_MODULE_0___default.a.render(script.text, katexElement, { displayMode: display });
-    } catch (err) {
-        //console.error(err); linter doesn't like this
-        katexElement.textContent = script.text;
-    }
-    script.parentNode.replaceChild(katexElement, script);
-});
-
-/***/ })
-/******/ ])["default"];
-});

+ 0 - 1
views/main_css/katex/contrib/mathtex-script-type.min.js

@@ -1 +0,0 @@
-!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("katex"));else if("function"==typeof define&&define.amd)define(["katex"],t);else{var r="object"==typeof exports?t(require("katex")):t(e.katex);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}("undefined"!=typeof self?self:this,function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1)}([function(t,r){t.exports=e},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n),u=document.body.getElementsByTagName("script");(u=Array.prototype.slice.call(u)).forEach(function(e){if(!e.type||!e.type.match(/math\/tex/i))return-1;var t=null!=e.type.match(/mode\s*=\s*display(;|\s|\n|$)/),r=document.createElement(t?"div":"span");r.setAttribute("class",t?"equation":"inline-equation");try{o.a.render(e.text,r,{displayMode:t})}catch(t){r.textContent=e.text}e.parentNode.replaceChild(r,e)})}]).default});

BIN
views/main_css/katex/fonts/KaTeX_AMS-Regular.ttf


BIN
views/main_css/katex/fonts/KaTeX_AMS-Regular.woff


BIN
views/main_css/katex/fonts/KaTeX_AMS-Regular.woff2


BIN
views/main_css/katex/fonts/KaTeX_Caligraphic-Bold.ttf


BIN
views/main_css/katex/fonts/KaTeX_Caligraphic-Bold.woff


BIN
views/main_css/katex/fonts/KaTeX_Caligraphic-Bold.woff2


BIN
views/main_css/katex/fonts/KaTeX_Caligraphic-Regular.ttf


BIN
views/main_css/katex/fonts/KaTeX_Caligraphic-Regular.woff


BIN
views/main_css/katex/fonts/KaTeX_Caligraphic-Regular.woff2


BIN
views/main_css/katex/fonts/KaTeX_Fraktur-Bold.ttf


BIN
views/main_css/katex/fonts/KaTeX_Fraktur-Bold.woff


BIN
views/main_css/katex/fonts/KaTeX_Fraktur-Bold.woff2


BIN
views/main_css/katex/fonts/KaTeX_Fraktur-Regular.ttf


BIN
views/main_css/katex/fonts/KaTeX_Fraktur-Regular.woff


BIN
views/main_css/katex/fonts/KaTeX_Fraktur-Regular.woff2


BIN
views/main_css/katex/fonts/KaTeX_Main-Bold.ttf


BIN
views/main_css/katex/fonts/KaTeX_Main-Bold.woff


BIN
views/main_css/katex/fonts/KaTeX_Main-Bold.woff2


BIN
views/main_css/katex/fonts/KaTeX_Main-BoldItalic.ttf


BIN
views/main_css/katex/fonts/KaTeX_Main-BoldItalic.woff


BIN
views/main_css/katex/fonts/KaTeX_Main-BoldItalic.woff2


BIN
views/main_css/katex/fonts/KaTeX_Main-Italic.ttf


BIN
views/main_css/katex/fonts/KaTeX_Main-Italic.woff


BIN
views/main_css/katex/fonts/KaTeX_Main-Italic.woff2


BIN
views/main_css/katex/fonts/KaTeX_Main-Regular.ttf


BIN
views/main_css/katex/fonts/KaTeX_Main-Regular.woff


BIN
views/main_css/katex/fonts/KaTeX_Main-Regular.woff2


BIN
views/main_css/katex/fonts/KaTeX_Math-BoldItalic.ttf


BIN
views/main_css/katex/fonts/KaTeX_Math-BoldItalic.woff


BIN
views/main_css/katex/fonts/KaTeX_Math-BoldItalic.woff2


BIN
views/main_css/katex/fonts/KaTeX_Math-Italic.ttf


BIN
views/main_css/katex/fonts/KaTeX_Math-Italic.woff


BIN
views/main_css/katex/fonts/KaTeX_Math-Italic.woff2


BIN
views/main_css/katex/fonts/KaTeX_SansSerif-Bold.ttf


BIN
views/main_css/katex/fonts/KaTeX_SansSerif-Bold.woff


BIN
views/main_css/katex/fonts/KaTeX_SansSerif-Bold.woff2


BIN
views/main_css/katex/fonts/KaTeX_SansSerif-Italic.ttf


BIN
views/main_css/katex/fonts/KaTeX_SansSerif-Italic.woff


BIN
views/main_css/katex/fonts/KaTeX_SansSerif-Italic.woff2


BIN
views/main_css/katex/fonts/KaTeX_SansSerif-Regular.ttf


BIN
views/main_css/katex/fonts/KaTeX_SansSerif-Regular.woff


BIN
views/main_css/katex/fonts/KaTeX_SansSerif-Regular.woff2


BIN
views/main_css/katex/fonts/KaTeX_Script-Regular.ttf


BIN
views/main_css/katex/fonts/KaTeX_Script-Regular.woff


BIN
views/main_css/katex/fonts/KaTeX_Script-Regular.woff2


BIN
views/main_css/katex/fonts/KaTeX_Size1-Regular.ttf


BIN
views/main_css/katex/fonts/KaTeX_Size1-Regular.woff


BIN
views/main_css/katex/fonts/KaTeX_Size1-Regular.woff2


BIN
views/main_css/katex/fonts/KaTeX_Size2-Regular.ttf


BIN
views/main_css/katex/fonts/KaTeX_Size2-Regular.woff


BIN
views/main_css/katex/fonts/KaTeX_Size2-Regular.woff2


BIN
views/main_css/katex/fonts/KaTeX_Size3-Regular.ttf


BIN
views/main_css/katex/fonts/KaTeX_Size3-Regular.woff


BIN
views/main_css/katex/fonts/KaTeX_Size3-Regular.woff2


BIN
views/main_css/katex/fonts/KaTeX_Size4-Regular.ttf


BIN
views/main_css/katex/fonts/KaTeX_Size4-Regular.woff


BIN
views/main_css/katex/fonts/KaTeX_Size4-Regular.woff2


BIN
views/main_css/katex/fonts/KaTeX_Typewriter-Regular.ttf


BIN
views/main_css/katex/fonts/KaTeX_Typewriter-Regular.woff


BIN
views/main_css/katex/fonts/KaTeX_Typewriter-Regular.woff2


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
views/main_css/katex/katex.min.css


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
views/main_css/katex/katex.min.js


Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott