securemark 0.231.0 → 0.232.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/CHANGELOG.md +14 -0
- package/dist/securemark.js +133 -103
- package/gulpfile.js +21 -1
- package/index.d.ts +2 -2
- package/markdown.d.ts +44 -42
- package/package-lock.json +934 -205
- package/package.json +9 -7
- package/src/debug.test.ts +1 -0
- package/src/parser/api/header.ts +1 -1
- package/src/parser/block/extension/table.ts +1 -1
- package/src/parser/block/paragraph.test.ts +4 -12
- package/src/parser/block/paragraph.ts +3 -17
- package/src/parser/block/{paragraph/mention → reply}/cite.test.ts +3 -3
- package/src/parser/block/{paragraph/mention → reply}/cite.ts +5 -5
- package/src/parser/block/{paragraph/mention → reply}/quote.test.ts +3 -3
- package/src/parser/block/{paragraph/mention → reply}/quote.ts +9 -9
- package/src/parser/block/reply.test.ts +22 -0
- package/src/parser/block/reply.ts +27 -0
- package/src/parser/block.ts +3 -0
- package/src/parser/inline/bracket.ts +2 -5
- package/src/parser/inline/comment.test.ts +2 -0
- package/src/parser/inline/comment.ts +2 -2
- package/src/parser/inline/html.ts +1 -1
- package/src/parser/inline/link.ts +3 -3
- package/src/parser/inline/ruby.ts +2 -2
- package/src/parser/util.ts +3 -3
- package/src/renderer/render/media/youtube.ts +4 -4
- package/src/util/info.test.ts +1 -1
- package/src/util/info.ts +2 -2
- package/src/util/quote.ts +1 -1
- package/src/util/scope.ts +3 -1
- package/src/parser/block/paragraph/mention.ts +0 -9
package/markdown.d.ts
CHANGED
|
@@ -87,6 +87,7 @@ export namespace MarkdownParser {
|
|
|
87
87
|
BlockParser.MathBlockParser,
|
|
88
88
|
BlockParser.ExtensionParser,
|
|
89
89
|
BlockParser.BlockquoteParser,
|
|
90
|
+
BlockParser.ReplyParser,
|
|
90
91
|
BlockParser.ParagraphParser,
|
|
91
92
|
]> {
|
|
92
93
|
}
|
|
@@ -550,65 +551,66 @@ export namespace MarkdownParser {
|
|
|
550
551
|
}
|
|
551
552
|
}
|
|
552
553
|
}
|
|
553
|
-
export interface
|
|
554
|
+
export interface ReplyParser extends
|
|
555
|
+
// >>1
|
|
556
|
+
// > text
|
|
554
557
|
// abc
|
|
555
|
-
Block<'
|
|
558
|
+
Block<'reply'>,
|
|
556
559
|
Parser<HTMLParagraphElement, Context, [
|
|
557
|
-
ParagraphParser.MentionParser,
|
|
558
560
|
Parser<string | HTMLElement, Context, [
|
|
559
|
-
|
|
561
|
+
ReplyParser.CiteParser,
|
|
562
|
+
ReplyParser.QuoteParser,
|
|
563
|
+
]>,
|
|
564
|
+
Parser<string | HTMLElement, Context, [
|
|
565
|
+
ReplyParser.QuoteParser,
|
|
560
566
|
InlineParser,
|
|
561
567
|
]>,
|
|
562
568
|
]> {
|
|
563
569
|
}
|
|
564
|
-
export namespace
|
|
565
|
-
export interface
|
|
566
|
-
|
|
567
|
-
// > text
|
|
568
|
-
Block<'paragraph/mention'>,
|
|
570
|
+
export namespace ReplyParser {
|
|
571
|
+
export interface CiteParser extends
|
|
572
|
+
Block<'reply/cite'>,
|
|
569
573
|
Parser<HTMLSpanElement | HTMLBRElement, Context, [
|
|
570
|
-
|
|
571
|
-
|
|
574
|
+
SourceParser.StrParser,
|
|
575
|
+
InlineParser.AutolinkParser.AnchorParser,
|
|
572
576
|
]> {
|
|
573
577
|
}
|
|
574
|
-
export
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
578
|
+
export interface QuoteParser extends
|
|
579
|
+
Block<'reply/quote'>,
|
|
580
|
+
Parser<HTMLSpanElement | HTMLBRElement, Context, [
|
|
581
|
+
QuoteParser.BlockParser,
|
|
582
|
+
QuoteParser.PlaceholderParser,
|
|
583
|
+
]> {
|
|
584
|
+
}
|
|
585
|
+
export namespace QuoteParser {
|
|
586
|
+
export interface BlockParser extends
|
|
587
|
+
Block<'reply/quote/block'>,
|
|
588
|
+
Parser<string | HTMLElement, Context, [
|
|
589
|
+
TextParser,
|
|
580
590
|
]> {
|
|
581
591
|
}
|
|
582
|
-
export interface
|
|
583
|
-
Block<'
|
|
584
|
-
Parser<
|
|
585
|
-
|
|
586
|
-
|
|
592
|
+
export interface TextParser extends
|
|
593
|
+
Block<'reply/quote/text'>,
|
|
594
|
+
Parser<string | HTMLElement, Context, [
|
|
595
|
+
InlineParser.MathParser,
|
|
596
|
+
AutolinkParser,
|
|
587
597
|
]> {
|
|
588
598
|
}
|
|
589
|
-
export
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
]> {
|
|
595
|
-
}
|
|
596
|
-
export interface TextParser extends
|
|
597
|
-
Block<'paragraph/mention/quote/text'>,
|
|
598
|
-
Parser<string | HTMLElement, Context, [
|
|
599
|
-
InlineParser.MathParser,
|
|
600
|
-
AutolinkParser,
|
|
601
|
-
]> {
|
|
602
|
-
}
|
|
603
|
-
export interface PlaceholderParser extends
|
|
604
|
-
Block<'paragraph/mention/quote/placeholder'>,
|
|
605
|
-
Parser<string | HTMLElement, Context, [
|
|
606
|
-
SourceParser.StrParser,
|
|
607
|
-
]> {
|
|
608
|
-
}
|
|
599
|
+
export interface PlaceholderParser extends
|
|
600
|
+
Block<'reply/quote/placeholder'>,
|
|
601
|
+
Parser<string | HTMLElement, Context, [
|
|
602
|
+
SourceParser.StrParser,
|
|
603
|
+
]> {
|
|
609
604
|
}
|
|
610
605
|
}
|
|
611
606
|
}
|
|
607
|
+
export interface ParagraphParser extends
|
|
608
|
+
// abc
|
|
609
|
+
Block<'paragraph'>,
|
|
610
|
+
Parser<HTMLParagraphElement, Context, [
|
|
611
|
+
InlineParser,
|
|
612
|
+
]> {
|
|
613
|
+
}
|
|
612
614
|
}
|
|
613
615
|
export interface InlineParser extends
|
|
614
616
|
Markdown<'inline'>,
|