Skip to content

Commit 0b76065

Browse files
committed
feat(nodes): BlockTag#text
Signed-off-by: Lexus Drumgold <[email protected]>
1 parent 385f8f6 commit 0b76065

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ contain [**inline tag**](#inlinetag) nodes.
136136
interface BlockTag <: Parent {
137137
children: [InlineTag]
138138
tag: string
139+
text: string
139140
type: 'block-tag'
140141
value: string
141142
}

src/nodes/tag-block.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ interface BlockTag<Data extends unist.Data = unist.Data>
3535
*/
3636
tag: string
3737

38+
/**
39+
* Text after {@linkcode tag}.
40+
*/
41+
text: string
42+
3843
/**
3944
* Node variant.
4045
*/

0 commit comments

Comments
 (0)