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

35
server/node_modules/markdown-it-abbr/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,35 @@
1.0.4 / 2016-08-31
------------------
- Fixed infinite loop caused by empty abbreviations like `*[]: foo`. Empty abbreviations are no longer parsed.
1.0.3 / 2016-01-05
------------------
- Fixed uc.micro use.
1.0.2 / 2015-12-31
------------------
- maintenance, bower files rebuild
1.0.1 / 2015-12-31
------------------
- Resolved collision with `linkify-it`.
- Extended list of start/stop punctuation characters to unicode ones.
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-abbr/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.

53
server/node_modules/markdown-it-abbr/README.md generated vendored Normal file
View File

@@ -0,0 +1,53 @@
# markdown-it-abbr
[![Build Status](https://img.shields.io/travis/markdown-it/markdown-it-abbr/master.svg?style=flat)](https://travis-ci.org/markdown-it/markdown-it-abbr)
[![NPM version](https://img.shields.io/npm/v/markdown-it-abbr.svg?style=flat)](https://www.npmjs.org/package/markdown-it-abbr)
[![Coverage Status](https://img.shields.io/coveralls/markdown-it/markdown-it-abbr/master.svg?style=flat)](https://coveralls.io/r/markdown-it/markdown-it-abbr?branch=master)
> Abbreviation (`<abbr>`) tag plugin for [markdown-it](https://github.com/markdown-it/markdown-it) markdown parser.
__v1.+ requires `markdown-it` v4.+, see changelog.__
Markup is based on [php markdown extra](https://michelf.ca/projects/php-markdown/extra/#abbr) definition, but without multiline support.
Markdown:
```
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
is maintained by the W3C.
```
HTML:
```html
<p>The <abbr title="Hyper Text Markup Language">HTML</abbr> specification
is maintained by the <abbr title="World Wide Web Consortium">W3C</abbr>.</p>
```
## Install
node.js, browser:
```bash
npm install markdown-it-abbr --save
bower install markdown-it-abbr --save
```
## Use
```js
var md = require('markdown-it')()
.use(require('markdown-it-abbr'));
md.render(/*...*/) // see example above
```
_Differences in browser._ If you load script directly into the page, without
package system, module will add itself globally as `window.markdownitAbbr`.
## License
[MIT](https://github.com/markdown-it/markdown-it-abbr/blob/master/LICENSE)

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

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

View File

@@ -0,0 +1,152 @@
/*! markdown-it-abbr 1.0.4 https://github.com//markdown-it/markdown-it-abbr @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.markdownitAbbr = 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){
// Enclose abbreviations in <abbr> tags
//
'use strict';
module.exports = function sub_plugin(md) {
var escapeRE = md.utils.escapeRE,
arrayReplaceAt = md.utils.arrayReplaceAt;
// ASCII characters in Cc, Sc, Sm, Sk categories we should terminate on;
// you can check character classes here:
// http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
var OTHER_CHARS = ' \r\n$+<=>^`|~';
var UNICODE_PUNCT_RE = md.utils.lib.ucmicro.P.source;
var UNICODE_SPACE_RE = md.utils.lib.ucmicro.Z.source;
function abbr_def(state, startLine, endLine, silent) {
var label, title, ch, labelStart, labelEnd,
pos = state.bMarks[startLine] + state.tShift[startLine],
max = state.eMarks[startLine];
if (pos + 2 >= max) { return false; }
if (state.src.charCodeAt(pos++) !== 0x2A/* * */) { return false; }
if (state.src.charCodeAt(pos++) !== 0x5B/* [ */) { return false; }
labelStart = pos;
for (; pos < max; pos++) {
ch = state.src.charCodeAt(pos);
if (ch === 0x5B /* [ */) {
return false;
} else if (ch === 0x5D /* ] */) {
labelEnd = pos;
break;
} else if (ch === 0x5C /* \ */) {
pos++;
}
}
if (labelEnd < 0 || state.src.charCodeAt(labelEnd + 1) !== 0x3A/* : */) {
return false;
}
if (silent) { return true; }
label = state.src.slice(labelStart, labelEnd).replace(/\\(.)/g, '$1');
title = state.src.slice(labelEnd + 2, max).trim();
if (label.length === 0) { return false; }
if (title.length === 0) { return false; }
if (!state.env.abbreviations) { state.env.abbreviations = {}; }
// prepend ':' to avoid conflict with Object.prototype members
if (typeof state.env.abbreviations[':' + label] === 'undefined') {
state.env.abbreviations[':' + label] = title;
}
state.line = startLine + 1;
return true;
}
function abbr_replace(state) {
var i, j, l, tokens, token, text, nodes, pos, reg, m, regText, regSimple,
currentToken,
blockTokens = state.tokens;
if (!state.env.abbreviations) { return; }
regSimple = new RegExp('(?:' +
Object.keys(state.env.abbreviations).map(function (x) {
return x.substr(1);
}).sort(function (a, b) {
return b.length - a.length;
}).map(escapeRE).join('|') +
')');
regText = '(^|' + UNICODE_PUNCT_RE + '|' + UNICODE_SPACE_RE +
'|[' + OTHER_CHARS.split('').map(escapeRE).join('') + '])'
+ '(' + Object.keys(state.env.abbreviations).map(function (x) {
return x.substr(1);
}).sort(function (a, b) {
return b.length - a.length;
}).map(escapeRE).join('|') + ')'
+ '($|' + UNICODE_PUNCT_RE + '|' + UNICODE_SPACE_RE +
'|[' + OTHER_CHARS.split('').map(escapeRE).join('') + '])';
reg = new RegExp(regText, 'g');
for (j = 0, l = blockTokens.length; j < l; j++) {
if (blockTokens[j].type !== 'inline') { continue; }
tokens = blockTokens[j].children;
// We scan from the end, to keep position when new tags added.
for (i = tokens.length - 1; i >= 0; i--) {
currentToken = tokens[i];
if (currentToken.type !== 'text') { continue; }
pos = 0;
text = currentToken.content;
reg.lastIndex = 0;
nodes = [];
// fast regexp run to determine whether there are any abbreviated words
// in the current token
if (!regSimple.test(text)) { continue; }
while ((m = reg.exec(text))) {
if (m.index > 0 || m[1].length > 0) {
token = new state.Token('text', '', 0);
token.content = text.slice(pos, m.index + m[1].length);
nodes.push(token);
}
token = new state.Token('abbr_open', 'abbr', 1);
token.attrs = [ [ 'title', state.env.abbreviations[':' + m[2]] ] ];
nodes.push(token);
token = new state.Token('text', '', 0);
token.content = m[2];
nodes.push(token);
token = new state.Token('abbr_close', 'abbr', -1);
nodes.push(token);
reg.lastIndex -= m[3].length;
pos = reg.lastIndex;
}
if (!nodes.length) { continue; }
if (pos < text.length) {
token = new state.Token('text', '', 0);
token.content = text.slice(pos);
nodes.push(token);
}
// replace current node
blockTokens[j].children = tokens = arrayReplaceAt(tokens, i, nodes);
}
}
}
md.block.ruler.before('reference', 'abbr_def', abbr_def, { alt: [ 'paragraph', 'reference' ] });
md.core.ruler.after('linkify', 'abbr_replace', abbr_replace);
};
},{}]},{},[1])(1)
});

View File

@@ -0,0 +1,2 @@
/*! markdown-it-abbr 1.0.4 https://github.com//markdown-it/markdown-it-abbr @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 n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.markdownitAbbr=e()}}(function(){return function e(n,t,r){function i(a,s){if(!t[a]){if(!n[a]){var f="function"==typeof require&&require;if(!s&&f)return f(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=t[a]={exports:{}};n[a][0].call(c.exports,function(e){var t=n[a][1][e];return i(t?t:e)},c,c.exports,e,n,t,r)}return t[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,n,t){"use strict";n.exports=function(e){function n(e,n,t,r){var i,o,a,s,f,u=e.bMarks[n]+e.tShift[n],c=e.eMarks[n];if(u+2>=c)return!1;if(42!==e.src.charCodeAt(u++))return!1;if(91!==e.src.charCodeAt(u++))return!1;for(s=u;u<c;u++){if(a=e.src.charCodeAt(u),91===a)return!1;if(93===a){f=u;break}92===a&&u++}return!(f<0||58!==e.src.charCodeAt(f+1))&&(!!r||(i=e.src.slice(s,f).replace(/\\(.)/g,"$1"),o=e.src.slice(f+2,c).trim(),0!==i.length&&(0!==o.length&&(e.env.abbreviations||(e.env.abbreviations={}),"undefined"==typeof e.env.abbreviations[":"+i]&&(e.env.abbreviations[":"+i]=o),e.line=n+1,!0))))}function t(e){var n,t,f,u,c,l,b,p,d,h,v,g,x,y=e.tokens;if(e.env.abbreviations)for(g=new RegExp("(?:"+Object.keys(e.env.abbreviations).map(function(e){return e.substr(1)}).sort(function(e,n){return n.length-e.length}).map(r).join("|")+")"),v="(^|"+a+"|"+s+"|["+o.split("").map(r).join("")+"])("+Object.keys(e.env.abbreviations).map(function(e){return e.substr(1)}).sort(function(e,n){return n.length-e.length}).map(r).join("|")+")($|"+a+"|"+s+"|["+o.split("").map(r).join("")+"])",d=new RegExp(v,"g"),t=0,f=y.length;t<f;t++)if("inline"===y[t].type)for(u=y[t].children,n=u.length-1;n>=0;n--)if(x=u[n],"text"===x.type&&(p=0,l=x.content,d.lastIndex=0,b=[],g.test(l))){for(;h=d.exec(l);)(h.index>0||h[1].length>0)&&(c=new e.Token("text","",0),c.content=l.slice(p,h.index+h[1].length),b.push(c)),c=new e.Token("abbr_open","abbr",1),c.attrs=[["title",e.env.abbreviations[":"+h[2]]]],b.push(c),c=new e.Token("text","",0),c.content=h[2],b.push(c),c=new e.Token("abbr_close","abbr",-1),b.push(c),d.lastIndex-=h[3].length,p=d.lastIndex;b.length&&(p<l.length&&(c=new e.Token("text","",0),c.content=l.slice(p),b.push(c)),y[t].children=u=i(u,n,b))}}var r=e.utils.escapeRE,i=e.utils.arrayReplaceAt,o=" \r\n$+<=>^`|~",a=e.utils.lib.ucmicro.P.source,s=e.utils.lib.ucmicro.Z.source;e.block.ruler.before("reference","abbr_def",n,{alt:["paragraph","reference"]}),e.core.ruler.after("linkify","abbr_replace",t)}},{}]},{},[1])(1)});

148
server/node_modules/markdown-it-abbr/index.js generated vendored Normal file
View File

@@ -0,0 +1,148 @@
// Enclose abbreviations in <abbr> tags
//
'use strict';
module.exports = function sub_plugin(md) {
var escapeRE = md.utils.escapeRE,
arrayReplaceAt = md.utils.arrayReplaceAt;
// ASCII characters in Cc, Sc, Sm, Sk categories we should terminate on;
// you can check character classes here:
// http://www.unicode.org/Public/UNIDATA/UnicodeData.txt
var OTHER_CHARS = ' \r\n$+<=>^`|~';
var UNICODE_PUNCT_RE = md.utils.lib.ucmicro.P.source;
var UNICODE_SPACE_RE = md.utils.lib.ucmicro.Z.source;
function abbr_def(state, startLine, endLine, silent) {
var label, title, ch, labelStart, labelEnd,
pos = state.bMarks[startLine] + state.tShift[startLine],
max = state.eMarks[startLine];
if (pos + 2 >= max) { return false; }
if (state.src.charCodeAt(pos++) !== 0x2A/* * */) { return false; }
if (state.src.charCodeAt(pos++) !== 0x5B/* [ */) { return false; }
labelStart = pos;
for (; pos < max; pos++) {
ch = state.src.charCodeAt(pos);
if (ch === 0x5B /* [ */) {
return false;
} else if (ch === 0x5D /* ] */) {
labelEnd = pos;
break;
} else if (ch === 0x5C /* \ */) {
pos++;
}
}
if (labelEnd < 0 || state.src.charCodeAt(labelEnd + 1) !== 0x3A/* : */) {
return false;
}
if (silent) { return true; }
label = state.src.slice(labelStart, labelEnd).replace(/\\(.)/g, '$1');
title = state.src.slice(labelEnd + 2, max).trim();
if (label.length === 0) { return false; }
if (title.length === 0) { return false; }
if (!state.env.abbreviations) { state.env.abbreviations = {}; }
// prepend ':' to avoid conflict with Object.prototype members
if (typeof state.env.abbreviations[':' + label] === 'undefined') {
state.env.abbreviations[':' + label] = title;
}
state.line = startLine + 1;
return true;
}
function abbr_replace(state) {
var i, j, l, tokens, token, text, nodes, pos, reg, m, regText, regSimple,
currentToken,
blockTokens = state.tokens;
if (!state.env.abbreviations) { return; }
regSimple = new RegExp('(?:' +
Object.keys(state.env.abbreviations).map(function (x) {
return x.substr(1);
}).sort(function (a, b) {
return b.length - a.length;
}).map(escapeRE).join('|') +
')');
regText = '(^|' + UNICODE_PUNCT_RE + '|' + UNICODE_SPACE_RE +
'|[' + OTHER_CHARS.split('').map(escapeRE).join('') + '])'
+ '(' + Object.keys(state.env.abbreviations).map(function (x) {
return x.substr(1);
}).sort(function (a, b) {
return b.length - a.length;
}).map(escapeRE).join('|') + ')'
+ '($|' + UNICODE_PUNCT_RE + '|' + UNICODE_SPACE_RE +
'|[' + OTHER_CHARS.split('').map(escapeRE).join('') + '])';
reg = new RegExp(regText, 'g');
for (j = 0, l = blockTokens.length; j < l; j++) {
if (blockTokens[j].type !== 'inline') { continue; }
tokens = blockTokens[j].children;
// We scan from the end, to keep position when new tags added.
for (i = tokens.length - 1; i >= 0; i--) {
currentToken = tokens[i];
if (currentToken.type !== 'text') { continue; }
pos = 0;
text = currentToken.content;
reg.lastIndex = 0;
nodes = [];
// fast regexp run to determine whether there are any abbreviated words
// in the current token
if (!regSimple.test(text)) { continue; }
while ((m = reg.exec(text))) {
if (m.index > 0 || m[1].length > 0) {
token = new state.Token('text', '', 0);
token.content = text.slice(pos, m.index + m[1].length);
nodes.push(token);
}
token = new state.Token('abbr_open', 'abbr', 1);
token.attrs = [ [ 'title', state.env.abbreviations[':' + m[2]] ] ];
nodes.push(token);
token = new state.Token('text', '', 0);
token.content = m[2];
nodes.push(token);
token = new state.Token('abbr_close', 'abbr', -1);
nodes.push(token);
reg.lastIndex -= m[3].length;
pos = reg.lastIndex;
}
if (!nodes.length) { continue; }
if (pos < text.length) {
token = new state.Token('text', '', 0);
token.content = text.slice(pos);
nodes.push(token);
}
// replace current node
blockTokens[j].children = tokens = arrayReplaceAt(tokens, i, nodes);
}
}
}
md.block.ruler.before('reference', 'abbr_def', abbr_def, { alt: [ 'paragraph', 'reference' ] });
md.core.ruler.after('linkify', 'abbr_replace', abbr_replace);
};

36
server/node_modules/markdown-it-abbr/package.json generated vendored Normal file
View File

@@ -0,0 +1,36 @@
{
"name": "markdown-it-abbr",
"version": "1.0.4",
"description": "<abbr> tag for markdown-it markdown parser.",
"keywords": [
"markdown-it-plugin",
"markdown-it",
"markdown",
"abbreviation",
"abbr"
],
"homepage": "https://github.com/markdown-it/markdown-it-abbr",
"repository": {
"type": "git",
"url": "git://github.com/markdown-it/markdown-it-abbr.git"
},
"bugs": {
"url": "https://github.com/markdown-it/markdown-it-abbr/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": "*",
"markdown-it": "^5.0.3",
"markdown-it-testgen": "~0.1.0",
"mocha": "*",
"uglify-js": "*"
}
}