@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.
Files changed (56) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +1 -1
  3. package/THIRD-PARTY-LICENSES.md +23 -0
  4. package/dist/index.cjs +655 -436
  5. package/dist/index.d.cts +11 -4
  6. package/dist/index.d.ts +11 -4
  7. package/dist/index.js +653 -435
  8. package/licenses/LGPL-2.1.txt +501 -0
  9. package/package.json +6 -3
  10. package/src/build-info.generated.ts +11 -0
  11. package/src/index.ts +2 -0
  12. package/src/lexer/lexer.ts +6 -4
  13. package/src/lexer/punctuation.ts +2 -1
  14. package/src/lexer/spacing-actions.ts +15 -0
  15. package/src/lexer/state.ts +30 -4
  16. package/src/lexer/token-factory.ts +15 -2
  17. package/src/lexer/tokens.ts +4 -3
  18. package/src/parser/rules/block/blockquote/build.ts +81 -37
  19. package/src/parser/rules/block/blockquote/index.ts +5 -6
  20. package/src/parser/rules/block/blockquote/line.ts +11 -10
  21. package/src/parser/rules/block/blockquote/lines.ts +102 -4
  22. package/src/parser/rules/block/code/content.ts +0 -3
  23. package/src/parser/rules/block/code/index.ts +14 -10
  24. package/src/parser/rules/block/definition-list/index.ts +4 -10
  25. package/src/parser/rules/block/definition-list/item-value.ts +2 -11
  26. package/src/parser/rules/block/definition-list/items.ts +1 -2
  27. package/src/parser/rules/block/embed-block/index.ts +30 -30
  28. package/src/parser/rules/block/heading/index.ts +7 -0
  29. package/src/parser/rules/block/paragraph/index.ts +41 -10
  30. package/src/parser/rules/block/parsing/content.ts +18 -1
  31. package/src/parser/rules/block/table/pipe/cell.ts +36 -1
  32. package/src/parser/rules/block/table/pipe/row.ts +21 -1
  33. package/src/parser/rules/block/toc/element.ts +2 -2
  34. package/src/parser/rules/block/toc/index.ts +2 -2
  35. package/src/parser/rules/block/toc/open.ts +5 -18
  36. package/src/parser/rules/contracts/scope.ts +4 -0
  37. package/src/parser/rules/inline/bold.ts +5 -5
  38. package/src/parser/rules/inline/color/syntax.ts +5 -8
  39. package/src/parser/rules/inline/formatting/close.ts +39 -0
  40. package/src/parser/rules/inline/formatting/container.ts +7 -4
  41. package/src/parser/rules/inline/index.ts +2 -0
  42. package/src/parser/rules/inline/italic.ts +5 -5
  43. package/src/parser/rules/inline/monospace.ts +5 -5
  44. package/src/parser/rules/inline/parsing/block-start-predicates.ts +2 -0
  45. package/src/parser/rules/inline/parsing/inline-content.ts +58 -4
  46. package/src/parser/rules/inline/raw/end.ts +28 -0
  47. package/src/parser/rules/inline/span/content.ts +32 -1
  48. package/src/parser/rules/inline/strikethrough/index.ts +1 -1
  49. package/src/parser/rules/inline/strikethrough/parse.ts +2 -9
  50. package/src/parser/rules/inline/strikethrough/syntax.ts +3 -20
  51. package/src/parser/rules/inline/subscript.ts +5 -5
  52. package/src/parser/rules/inline/superscript.ts +5 -5
  53. package/src/parser/rules/inline/underline/index.ts +5 -78
  54. package/src/parser/rules/tokens.ts +6 -15
  55. package/src/parser/rules/inline/underline/child.ts +0 -26
  56. 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).