securemark 0.283.6 → 0.284.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 (36) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +11 -11
  3. package/dist/index.js +172 -121
  4. package/markdown.d.ts +44 -30
  5. package/package.json +1 -1
  6. package/src/combinator/control/constraint/block.ts +3 -2
  7. package/src/combinator/control/constraint/contract.ts +6 -4
  8. package/src/combinator/control/manipulation/lazy.ts +3 -1
  9. package/src/combinator/control/manipulation/match.ts +3 -2
  10. package/src/combinator/control/manipulation/scope.ts +3 -2
  11. package/src/combinator/control/monad/bind.ts +3 -2
  12. package/src/combinator/data/parser/context.ts +12 -8
  13. package/src/parser/inline/autolink/account.ts +5 -4
  14. package/src/parser/inline/autolink/anchor.ts +5 -4
  15. package/src/parser/inline/autolink/channel.ts +3 -2
  16. package/src/parser/inline/autolink/email.ts +7 -4
  17. package/src/parser/inline/autolink/hashnum.ts +5 -4
  18. package/src/parser/inline/autolink/hashtag.ts +5 -4
  19. package/src/parser/inline/autolink/url.test.ts +1 -1
  20. package/src/parser/inline/code.ts +3 -3
  21. package/src/parser/inline/extension/index.ts +2 -2
  22. package/src/parser/inline/extension/label.ts +5 -5
  23. package/src/parser/inline/extension/placeholder.ts +3 -3
  24. package/src/parser/inline/extension.ts +3 -3
  25. package/src/parser/inline/html.ts +2 -2
  26. package/src/parser/inline/italic.test.ts +53 -0
  27. package/src/parser/inline/italic.ts +21 -0
  28. package/src/parser/inline/link.ts +2 -2
  29. package/src/parser/inline/math.ts +1 -1
  30. package/src/parser/inline/remark.ts +3 -3
  31. package/src/parser/inline/ruby.ts +3 -3
  32. package/src/parser/inline/template.ts +1 -1
  33. package/src/parser/inline.test.ts +5 -3
  34. package/src/parser/inline.ts +59 -21
  35. package/src/parser/source/text.ts +1 -0
  36. package/src/parser/visibility.ts +3 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.284.0
4
+
5
+ - Add italic syntax.
6
+
7
+ ## 0.283.7
8
+
9
+ - Refactoring.
10
+
3
11
  ## 0.283.6
4
12
 
5
13
  - Refactoring.
package/README.md CHANGED
@@ -47,7 +47,7 @@ Secure markdown renderer working on browsers for user input data.
47
47
  - Blockquote (>, !>)
48
48
  - Preformattedtext (```)
49
49
  - Pagebreak (===)
50
- - Inline markups (*, **, `, []{}, {}, ![]{}, !{}, \[](), ++, ~~, (()), ...)
50
+ - Inline markups (*, **, ///, `, []{}, {}, ![]{}, !{}, \[](), ++, ~~, (()), ...)
51
51
  - Inline HTML tags (\<bdi>, \<bdo>)
52
52
  - Autolink (https://host, user@host, @user)
53
53
  - Shortmedia (!https://host/image.png, !https://youtu.be/...)
@@ -65,16 +65,16 @@ Secure markdown renderer working on browsers for user input data.
65
65
 
66
66
  ## Operator precedence
67
67
 
68
- |P| Operators |
69
- |-|------------------------|
70
- |9| \n, \\\n |
71
- |8| ` |
72
- |6| (()), [[]], {{}}, ${}$ |
73
- |5| [% %] |
74
- |4| \<tag>\</tag> |
75
- |3| $, " |
76
- |2| (), [], {} |
77
- |1| *, **, ==, ++, ~~ |
68
+ |P| Operators |
69
+ |-|------------------------------|
70
+ |9| \n, \\\n |
71
+ |6| ` |
72
+ |5| ${}$ |
73
+ |4| [% %] |
74
+ |3| \<tag>\</tag> |
75
+ |2| $, " |
76
+ |1| (), [], {}, (()), [[]], {{}} |
77
+ |0| *, **, ///, ==, ++, ~~ |
78
78
 
79
79
  ## Dependencies
80
80