@wdprlib/parser 5.1.5 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +661 -0
- package/README.md +1 -1
- package/THIRD-PARTY-LICENSES.md +23 -0
- package/dist/index.cjs +655 -436
- package/dist/index.d.cts +11 -4
- package/dist/index.d.ts +11 -4
- package/dist/index.js +653 -435
- package/licenses/LGPL-2.1.txt +501 -0
- package/package.json +6 -3
- package/src/build-info.generated.ts +11 -0
- package/src/index.ts +2 -0
- package/src/lexer/lexer.ts +6 -4
- package/src/lexer/punctuation.ts +2 -1
- package/src/lexer/spacing-actions.ts +15 -0
- package/src/lexer/state.ts +30 -4
- package/src/lexer/token-factory.ts +15 -2
- package/src/lexer/tokens.ts +4 -3
- package/src/parser/rules/block/blockquote/build.ts +81 -37
- package/src/parser/rules/block/blockquote/index.ts +5 -6
- package/src/parser/rules/block/blockquote/line.ts +11 -10
- package/src/parser/rules/block/blockquote/lines.ts +102 -4
- package/src/parser/rules/block/code/content.ts +0 -3
- package/src/parser/rules/block/code/index.ts +14 -10
- package/src/parser/rules/block/definition-list/index.ts +4 -10
- package/src/parser/rules/block/definition-list/item-value.ts +2 -11
- package/src/parser/rules/block/definition-list/items.ts +1 -2
- package/src/parser/rules/block/embed-block/index.ts +30 -30
- package/src/parser/rules/block/heading/index.ts +7 -0
- package/src/parser/rules/block/paragraph/index.ts +41 -10
- package/src/parser/rules/block/parsing/content.ts +18 -1
- package/src/parser/rules/block/table/pipe/cell.ts +36 -1
- package/src/parser/rules/block/table/pipe/row.ts +21 -1
- package/src/parser/rules/block/toc/element.ts +2 -2
- package/src/parser/rules/block/toc/index.ts +2 -2
- package/src/parser/rules/block/toc/open.ts +5 -18
- package/src/parser/rules/contracts/scope.ts +4 -0
- package/src/parser/rules/inline/bold.ts +5 -5
- package/src/parser/rules/inline/color/syntax.ts +5 -8
- package/src/parser/rules/inline/formatting/close.ts +39 -0
- package/src/parser/rules/inline/formatting/container.ts +7 -4
- package/src/parser/rules/inline/index.ts +2 -0
- package/src/parser/rules/inline/italic.ts +5 -5
- package/src/parser/rules/inline/monospace.ts +5 -5
- package/src/parser/rules/inline/parsing/block-start-predicates.ts +2 -0
- package/src/parser/rules/inline/parsing/inline-content.ts +58 -4
- package/src/parser/rules/inline/raw/end.ts +28 -0
- package/src/parser/rules/inline/span/content.ts +32 -1
- package/src/parser/rules/inline/strikethrough/index.ts +1 -1
- package/src/parser/rules/inline/strikethrough/parse.ts +2 -9
- package/src/parser/rules/inline/strikethrough/syntax.ts +3 -20
- package/src/parser/rules/inline/subscript.ts +5 -5
- package/src/parser/rules/inline/superscript.ts +5 -5
- package/src/parser/rules/inline/underline/index.ts +5 -78
- package/src/parser/rules/tokens.ts +6 -15
- package/src/parser/rules/inline/underline/child.ts +0 -26
- package/src/parser/rules/inline/underline/content.ts +0 -29
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Third-Party Licenses
|
|
2
|
+
|
|
3
|
+
Portions of this package's code, data structures, and algorithms were adapted from or based on the projects listed below and modified for wdpr's TypeScript implementation. Test fixtures derived from ftml are distributed in the wdpr source repository.
|
|
4
|
+
|
|
5
|
+
## ftml
|
|
6
|
+
|
|
7
|
+
- Source: <https://github.com/scpwiki/ftml>
|
|
8
|
+
- Author: Emmie Smith
|
|
9
|
+
- Copyright notice: Copyright (C) 2019-2026 Wikijump Team
|
|
10
|
+
- License: GNU Affero General Public License, version 3 or later
|
|
11
|
+
|
|
12
|
+
The GNU Affero General Public License version 3 is reproduced in [LICENSE](LICENSE). The upstream project permits use under version 3 or any later version.
|
|
13
|
+
|
|
14
|
+
## Wikidot Text_Wiki
|
|
15
|
+
|
|
16
|
+
- Source: <https://github.com/gabrys/wikidot/tree/master/lib/Text_Wiki/Text>
|
|
17
|
+
- Authors and contributors named in the source: Paul M. Jones, Michal Frackowiak, Manuel Holtgrewe, and Bertrand Gugger
|
|
18
|
+
- Copyright notice in some files: 2005 bertrand Gugger
|
|
19
|
+
- License: GNU Lesser General Public License, version 2.1
|
|
20
|
+
|
|
21
|
+
The GNU Lesser General Public License version 2.1 is reproduced in [licenses/LGPL-2.1.txt](licenses/LGPL-2.1.txt).
|
|
22
|
+
|
|
23
|
+
The surrounding Wikidot project is Copyright (c) 2008 by Wikidot Inc. and is distributed under the GNU Affero General Public License, version 3 or later. See the upstream [LICENSE.txt](https://github.com/gabrys/wikidot/blob/master/LICENSE.txt).
|