Skip to content

Commit

Permalink
fix type error (#147)
Browse files Browse the repository at this point in the history
* feat: parse <plain> in parseSimple

* fix: type error

* chore: update api.md
  • Loading branch information
anatawa12 authored Jun 15, 2024
1 parent 7dbd9f2 commit 9cd9aae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/mfm-js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export type MfmSearch = {
};

// @public (undocumented)
export type MfmSimpleNode = MfmUnicodeEmoji | MfmEmojiCode | MfmText;
export type MfmSimpleNode = MfmUnicodeEmoji | MfmEmojiCode | MfmText | MfmPlain;

// @public (undocumented)
export type MfmSmall = {
Expand Down
2 changes: 1 addition & 1 deletion src/node.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export type MfmNode = MfmBlock | MfmInline;

export type MfmSimpleNode = MfmUnicodeEmoji | MfmEmojiCode | MfmText;
export type MfmSimpleNode = MfmUnicodeEmoji | MfmEmojiCode | MfmText | MfmPlain;

export type MfmBlock = MfmQuote | MfmSearch | MfmCodeBlock | MfmMathBlock | MfmCenter;

Expand Down

0 comments on commit 9cd9aae

Please sign in to comment.