securemark 0.214.0 → 0.216.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 (42) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/design.md +10 -10
  3. package/dist/securemark.js +2351 -1627
  4. package/index.d.ts +7 -6
  5. package/markdown.d.ts +1 -2
  6. package/package-lock.json +139 -220
  7. package/package.json +7 -7
  8. package/src/combinator/control/constraint/block.ts +2 -0
  9. package/src/combinator/control/manipulation/context.ts +5 -7
  10. package/src/parser/api/parse.test.ts +6 -0
  11. package/src/parser/block/extension/table.ts +3 -3
  12. package/src/parser/block/ilist.ts +3 -2
  13. package/src/parser/block/paragraph.test.ts +2 -2
  14. package/src/parser/inline/annotation.test.ts +1 -1
  15. package/src/parser/inline/autolink/anchor.test.ts +1 -1
  16. package/src/parser/inline/comment.test.ts +22 -22
  17. package/src/parser/inline/comment.ts +2 -2
  18. package/src/parser/inline/deletion.test.ts +1 -1
  19. package/src/parser/inline/emphasis.test.ts +1 -1
  20. package/src/parser/inline/extension/index.test.ts +3 -2
  21. package/src/parser/inline/extension/placeholder.test.ts +4 -6
  22. package/src/parser/inline/html.ts +4 -5
  23. package/src/parser/inline/insertion.test.ts +1 -1
  24. package/src/parser/inline/link.test.ts +10 -9
  25. package/src/parser/inline/link.ts +49 -33
  26. package/src/parser/inline/mark.test.ts +1 -1
  27. package/src/parser/inline/media.ts +5 -5
  28. package/src/parser/inline/reference.test.ts +1 -1
  29. package/src/parser/inline/ruby.test.ts +0 -1
  30. package/src/parser/inline/strong.test.ts +1 -1
  31. package/src/parser/util.ts +6 -1
  32. package/src/renderer/render/media/audio.ts +2 -2
  33. package/src/renderer/render/media/image.ts +6 -5
  34. package/src/renderer/render/media/pdf.ts +8 -8
  35. package/src/renderer/render/media/twitter.ts +21 -19
  36. package/src/renderer/render/media/video.ts +2 -2
  37. package/src/renderer/render/media/youtube.ts +18 -20
  38. package/src/util/info.test.ts +6 -5
  39. package/src/util/info.ts +12 -11
  40. package/src/util/quote.ts +4 -1
  41. package/src/util/{context.ts → scope.ts} +1 -1
  42. package/src/util.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.216.0
4
+
5
+ - Refine comment syntax.
6
+
7
+ ## 0.215.1
8
+
9
+ - Fix link parser to open the media in a new tab.
10
+
11
+ ## 0.215.0
12
+
13
+ - Extend info function to return anchors.
14
+ - Change context function to scope function.
15
+
16
+ ## 0.214.1
17
+
18
+ - Fix error handling.
19
+
3
20
  ## 0.214.0
4
21
 
5
22
  - Extend quote syntax to improve syntax predictability.
package/design.md CHANGED
@@ -44,11 +44,11 @@
44
44
 
45
45
  ゆえに構文はCSSにより次の通り表示を変更することで意味付けを維持したままモノクロ版に変換できる。
46
46
 
47
- |Syntax|HTML|Presentation
48
- |-|-|-
49
- |==|\<mark>|下線(通常、幅広、または波型)
50
- |++|\<ins>|下線(幅広または波型)
51
- |~~|\<del>|打ち消し線
47
+ |Syntax|HTML |Presentation
48
+ |------|-------|------------
49
+ | == |\<mark>|下線(通常、幅広、または波型)
50
+ | ++ |\<ins> |下線(幅広または波型)
51
+ | ~~ |\<del> |打ち消し線
52
52
 
53
53
  ### 閲覧者によるマークアップ方法の確保
54
54
 
@@ -172,7 +172,7 @@
172
172
 
173
173
  ### 構文階層独立性
174
174
 
175
- 上位区分の構文の一致は下位区分の構文から独立して上位構文の形式のみから判定されなければならない。
175
+ 上位区分の構文の一致は下位区分の構文から独立して上位区分の構文の形式のみから判定されなければならない。
176
176
  よって上位区分の構文の一致判定に下位区分の構文による内包文字列のパース結果を用いてはならない。
177
177
 
178
178
  ゆえにすべてのブロック構文は構文の一致判定にインライン構文による内包文字列のパース結果を用いない。
@@ -190,9 +190,9 @@
190
190
 
191
191
  構文の追加は原則として次のいずれかの要求に対応するものでなければならない。
192
192
 
193
- - HTML上の情報表示形式への対応
194
- - HTML上で固有の視覚表現を持つ意味付けへの対応
195
- - HTMLドキュメントに要求される操作的機能の充足
193
+ - HTML上の情報表示形式への対応(\<ul>など)
194
+ - HTML上で固有の視覚表現を持つ意味付けへの対応(\<mark>など)
195
+ - HTMLドキュメントに要求される操作的機能の充足(Index構文など)
196
196
 
197
197
  よって外観や制御のために構文を追加してはならない。
198
198
  また他の構文と同じ視覚表現で異なる意味付けを行うHTMLタグを追加してはならない。
@@ -214,7 +214,7 @@
214
214
 
215
215
  ドキュメントは各要素への参照、参照先への移動、および参照元への復帰方法を提供しなければならない。
216
216
 
217
- ゆえにドキュメントはすべてのセクション、用語定義、図表、注釈、および出典をリンク機能を介して参照および復帰できる。
217
+ ゆえにドキュメントはすべてのセクション、用語定義、図表、注釈、および出典をリンクを介して参照、移動、および復帰できる。
218
218
 
219
219
  ### 編集性
220
220