node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

10
server/node_modules/markdown-it-sub/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,10 @@
1.0.0 / 2015-03-12
------------------
- Markdown-it 4.0.0 support. Use previous version for 2.x-3.x.
0.1.0 / 2015-01-04
------------------
- First release.

22
server/node_modules/markdown-it-sub/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,22 @@
Copyright (c) 2014-2015 Vitaly Puzrin, Alex Kocharin.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

40
server/node_modules/markdown-it-sub/README.md generated vendored Normal file
View File

@@ -0,0 +1,40 @@
# markdown-it-sub
[![Build Status](https://img.shields.io/travis/markdown-it/markdown-it-sub/master.svg?style=flat)](https://travis-ci.org/markdown-it/markdown-it-sub)
[![NPM version](https://img.shields.io/npm/v/markdown-it-sub.svg?style=flat)](https://www.npmjs.org/package/markdown-it-sub)
[![Coverage Status](https://img.shields.io/coveralls/markdown-it/markdown-it-sub/master.svg?style=flat)](https://coveralls.io/r/markdown-it/markdown-it-sub?branch=master)
> Subscript (`<sub>`) tag plugin for [markdown-it](https://github.com/markdown-it/markdown-it) markdown parser.
__v1.+ requires `markdown-it` v4.+, see changelog.__
`H~2~0` => `H<sub>2</sub>O`
Markup is based on [pandoc](http://johnmacfarlane.net/pandoc/README.html#superscripts-and-subscripts) definition. But nested markup is currently not supported.
## Install
node.js, browser:
```bash
npm install markdown-it-sub --save
bower install markdown-it-sub --save
```
## Use
```js
var md = require('markdown-it')()
.use(require('markdown-it-sub'));
md.render('H~2~0') // => '<p>H<sub>2</sub>O</p>'
```
_Differences in browser._ If you load script directly into the page, without
package system, module will add itself globally as `window.markdownitSub`.
## License
[MIT](https://github.com/markdown-it/markdown-it-sub/blob/master/LICENSE)

28
server/node_modules/markdown-it-sub/bower.json generated vendored Normal file
View File

@@ -0,0 +1,28 @@
{
"name": "markdown-it-sub",
"main": "dist/markdown-it-sub.js",
"homepage": "https://github.com/markdown-it/markdown-it-sub",
"description": "<sub> tag for markdown-it markdown parser.",
"keywords": [
"markdown-it-plugin",
"markdown-it",
"markdown",
"subscript",
"sub"
],
"license": "MIT",
"ignore": [
"**/.*",
"benchmark",
"bower_components",
"coverage",
"demo",
"docs",
"lib",
"node_modules",
"support",
"test",
"Makefile",
"index*"
]
}

View File

@@ -0,0 +1,70 @@
/*! markdown-it-sub 1.0.0 https://github.com//markdown-it/markdown-it-sub @license MIT */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.markdownitSub = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
// Process ~subscript~
'use strict';
// same as UNESCAPE_MD_RE plus a space
var UNESCAPE_RE = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
function subscript(state, silent) {
var found,
content,
token,
max = state.posMax,
start = state.pos;
if (state.src.charCodeAt(start) !== 0x7E/* ~ */) { return false; }
if (silent) { return false; } // don't run any pairs in validation mode
if (start + 2 >= max) { return false; }
state.pos = start + 1;
while (state.pos < max) {
if (state.src.charCodeAt(state.pos) === 0x7E/* ~ */) {
found = true;
break;
}
state.md.inline.skipToken(state);
}
if (!found || start + 1 === state.pos) {
state.pos = start;
return false;
}
content = state.src.slice(start + 1, state.pos);
// don't allow unescaped spaces/newlines inside
if (content.match(/(^|[^\\])(\\\\)*\s/)) {
state.pos = start;
return false;
}
// found!
state.posMax = state.pos;
state.pos = start + 1;
// Earlier we checked !silent, but this implementation does not need it
token = state.push('sub_open', 'sub', 1);
token.markup = '~';
token = state.push('text', '', 0);
token.content = content.replace(UNESCAPE_RE, '$1');
token = state.push('sub_close', 'sub', -1);
token.markup = '~';
state.pos = state.posMax + 1;
state.posMax = max;
return true;
}
module.exports = function sub_plugin(md) {
md.inline.ruler.after('emphasis', 'sub', subscript);
};
},{}]},{},[1])(1)
});

View File

@@ -0,0 +1,2 @@
/*! markdown-it-sub 1.0.0 https://github.com//markdown-it/markdown-it-sub @license MIT */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r;r="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,r.markdownitSub=e()}}(function(){return function e(r,o,n){function t(i,u){if(!o[i]){if(!r[i]){var f="function"==typeof require&&require;if(!u&&f)return f(i,!0);if(s)return s(i,!0);var p=new Error("Cannot find module '"+i+"'");throw p.code="MODULE_NOT_FOUND",p}var a=o[i]={exports:{}};r[i][0].call(a.exports,function(e){var o=r[i][1][e];return t(o?o:e)},a,a.exports,e,r,o,n)}return o[i].exports}for(var s="function"==typeof require&&require,i=0;i<n.length;i++)t(n[i]);return t}({1:[function(e,r){"use strict";function o(e,r){var o,t,s,i=e.posMax,u=e.pos;if(126!==e.src.charCodeAt(u))return!1;if(r)return!1;if(u+2>=i)return!1;for(e.pos=u+1;e.pos<i;){if(126===e.src.charCodeAt(e.pos)){o=!0;break}e.md.inline.skipToken(e)}return o&&u+1!==e.pos?(t=e.src.slice(u+1,e.pos),t.match(/(^|[^\\])(\\\\)*\s/)?(e.pos=u,!1):(e.posMax=e.pos,e.pos=u+1,s=e.push("sub_open","sub",1),s.markup="~",s=e.push("text","",0),s.content=t.replace(n,"$1"),s=e.push("sub_close","sub",-1),s.markup="~",e.pos=e.posMax+1,e.posMax=i,!0)):(e.pos=u,!1)}var n=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;r.exports=function(e){e.inline.ruler.after("emphasis","sub",o)}},{}]},{},[1])(1)});

66
server/node_modules/markdown-it-sub/index.js generated vendored Normal file
View File

@@ -0,0 +1,66 @@
// Process ~subscript~
'use strict';
// same as UNESCAPE_MD_RE plus a space
var UNESCAPE_RE = /\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;
function subscript(state, silent) {
var found,
content,
token,
max = state.posMax,
start = state.pos;
if (state.src.charCodeAt(start) !== 0x7E/* ~ */) { return false; }
if (silent) { return false; } // don't run any pairs in validation mode
if (start + 2 >= max) { return false; }
state.pos = start + 1;
while (state.pos < max) {
if (state.src.charCodeAt(state.pos) === 0x7E/* ~ */) {
found = true;
break;
}
state.md.inline.skipToken(state);
}
if (!found || start + 1 === state.pos) {
state.pos = start;
return false;
}
content = state.src.slice(start + 1, state.pos);
// don't allow unescaped spaces/newlines inside
if (content.match(/(^|[^\\])(\\\\)*\s/)) {
state.pos = start;
return false;
}
// found!
state.posMax = state.pos;
state.pos = start + 1;
// Earlier we checked !silent, but this implementation does not need it
token = state.push('sub_open', 'sub', 1);
token.markup = '~';
token = state.push('text', '', 0);
token.content = content.replace(UNESCAPE_RE, '$1');
token = state.push('sub_close', 'sub', -1);
token.markup = '~';
state.pos = state.posMax + 1;
state.posMax = max;
return true;
}
module.exports = function sub_plugin(md) {
md.inline.ruler.after('emphasis', 'sub', subscript);
};

38
server/node_modules/markdown-it-sub/package.json generated vendored Normal file
View File

@@ -0,0 +1,38 @@
{
"name": "markdown-it-sub",
"version": "1.0.0",
"description": "<sub> tag for markdown-it markdown parser.",
"keywords": [
"markdown-it-plugin",
"markdown-it",
"markdown",
"subscript",
"sub"
],
"homepage": "https://github.com/markdown-it/markdown-it-sub",
"repository": {
"type": "git",
"url": "git://github.com/markdown-it/markdown-it-sub.git"
},
"bugs": {
"url": "https://github.com/markdown-it/markdown-it-sub/issues"
},
"license": "MIT",
"main": "index.js",
"scripts": {
"test": "make test"
},
"devDependencies": {
"browserify": "*",
"coveralls": "^2.11.2",
"eslint": "0.10.2",
"eslint-plugin-nodeca": "^1.0.0",
"istanbul": "*",
"lodash": "*",
"markdown-it": "^4.0.0",
"markdown-it-testgen": "~0.1.0",
"mocha": "*",
"request": "*",
"uglify-js": "*"
}
}