Skip to content

Commit

Permalink
feat(nodes): InlineTag#text
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <[email protected]>
  • Loading branch information
unicornware committed Nov 20, 2022
1 parent 0b76065 commit 0558cd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ comment](#docblock-comment).
```idl
interface InlineTag <: Node {
tag: string
text: string
type: 'inline-tag'
value: string
}
Expand Down
5 changes: 5 additions & 0 deletions src/nodes/tag-inline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ interface InlineTag<Data extends unist.Data = unist.Data> extends Node<Data> {
*/
tag: string

/**
* Text after {@linkcode tag}.
*/
text: string

/**
* Node variant.
*/
Expand Down

0 comments on commit 0558cd7

Please sign in to comment.