securemark 0.256.0 → 0.257.2

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 (55) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +21 -8
  3. package/dist/index.js +237 -197
  4. package/markdown.d.ts +23 -17
  5. package/package.json +1 -1
  6. package/src/combinator/control/manipulation/context.ts +13 -2
  7. package/src/combinator/control/manipulation/resource.ts +36 -2
  8. package/src/combinator/control/manipulation/surround.ts +6 -6
  9. package/src/combinator/data/parser/inits.ts +1 -1
  10. package/src/combinator/data/parser/sequence.ts +1 -1
  11. package/src/combinator/data/parser/some.ts +16 -38
  12. package/src/combinator/data/parser.ts +34 -18
  13. package/src/debug.test.ts +2 -2
  14. package/src/parser/api/bind.ts +9 -11
  15. package/src/parser/api/parse.test.ts +48 -11
  16. package/src/parser/block.ts +1 -1
  17. package/src/parser/inline/annotation.test.ts +7 -5
  18. package/src/parser/inline/annotation.ts +10 -6
  19. package/src/parser/inline/autolink/account.ts +3 -7
  20. package/src/parser/inline/autolink/anchor.ts +3 -7
  21. package/src/parser/inline/autolink/hashnum.ts +3 -7
  22. package/src/parser/inline/autolink/hashtag.ts +3 -7
  23. package/src/parser/inline/autolink/url.test.ts +1 -0
  24. package/src/parser/inline/autolink/url.ts +7 -8
  25. package/src/parser/inline/bracket.test.ts +13 -7
  26. package/src/parser/inline/bracket.ts +10 -10
  27. package/src/parser/inline/comment.test.ts +5 -3
  28. package/src/parser/inline/comment.ts +4 -4
  29. package/src/parser/inline/deletion.ts +3 -3
  30. package/src/parser/inline/emphasis.ts +3 -3
  31. package/src/parser/inline/emstrong.ts +4 -5
  32. package/src/parser/inline/extension/index.test.ts +1 -0
  33. package/src/parser/inline/extension/index.ts +8 -7
  34. package/src/parser/inline/extension/indexer.ts +3 -5
  35. package/src/parser/inline/extension/label.ts +1 -1
  36. package/src/parser/inline/extension/placeholder.test.ts +1 -0
  37. package/src/parser/inline/extension/placeholder.ts +4 -4
  38. package/src/parser/inline/html.test.ts +2 -0
  39. package/src/parser/inline/html.ts +5 -5
  40. package/src/parser/inline/insertion.ts +3 -3
  41. package/src/parser/inline/link.test.ts +1 -0
  42. package/src/parser/inline/link.ts +58 -17
  43. package/src/parser/inline/mark.ts +3 -3
  44. package/src/parser/inline/math.test.ts +21 -14
  45. package/src/parser/inline/math.ts +7 -19
  46. package/src/parser/inline/media.test.ts +0 -2
  47. package/src/parser/inline/media.ts +10 -10
  48. package/src/parser/inline/reference.test.ts +6 -5
  49. package/src/parser/inline/reference.ts +12 -8
  50. package/src/parser/inline/ruby.ts +29 -27
  51. package/src/parser/inline/strong.ts +3 -3
  52. package/src/parser/inline/template.ts +4 -4
  53. package/src/parser/inline.test.ts +13 -8
  54. package/src/parser/inline.ts +1 -0
  55. package/src/parser/util.ts +35 -19
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.257.2
4
+
5
+ - Fix operator precedence.
6
+
7
+ ## 0.257.1
8
+
9
+ - Refactoring.
10
+
11
+ ## 0.257.0
12
+
13
+ - Introduce operator precedence.
14
+ - Decrease the max recursion depth to 20.
15
+ - Fix math parser.
16
+
3
17
  ## 0.256.0
4
18
 
5
19
  - Decrease the buget size to 50,000.
package/README.md CHANGED
@@ -22,6 +22,15 @@ Secure markdown renderer working on browsers for user input data.
22
22
  - Cross reference generation for annotations and references.
23
23
  - Table of contents.
24
24
 
25
+ ## Media
26
+
27
+ - Twitter
28
+ - YouTube
29
+ - PDF (.pdf)
30
+ - Video (.webm, .ogv)
31
+ - Audio (.oga, .ogg)
32
+ - Images
33
+
25
34
  ## Demos
26
35
 
27
36
  https://falsandtru.github.io/securemark/
@@ -58,14 +67,18 @@ https://falsandtru.github.io/securemark/
58
67
  - Template ({{ template }})
59
68
  - Comment ([% comment %])
60
69
 
61
- ## Media
62
-
63
- - Twitter
64
- - YouTube
65
- - PDF (.pdf)
66
- - Video (.webm, .ogv)
67
- - Audio (.oga, .ogg)
68
- - Images
70
+ ## Operator precedence
71
+
72
+ |P| Operators |
73
+ |-|-------------------|
74
+ |9| \n, \\\n |
75
+ |8| `, " |
76
+ |6| (()), [[]], ${}$ |
77
+ |5| \<tag>\</tag> |
78
+ |4| [% %] |
79
+ |3| $ |
80
+ |2| (), [], {} |
81
+ |1| *, **, ==, ++, ~~ |
69
82
 
70
83
  ## Dependencies
71
84