Skip to content

Commit

Permalink
fix(remark-kbd-nested)!: freeze fromMarkdown
Browse files Browse the repository at this point in the history
  • Loading branch information
shivjm committed Nov 6, 2021
1 parent e54a3c2 commit ac775c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/remark-kbd-nested/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { Plugin } from "unified";
import type { Root } from "mdast";
import type { Extension as FromMarkdownExtension } from "mdast-util-from-markdown";

const fromMarkdown: FromMarkdownExtension = {
const fromMarkdown: FromMarkdownExtension = Object.freeze({
canContainEols: ["keyboard"],
enter: {
keyboardSequence: function (token) {
Expand Down Expand Up @@ -39,7 +39,7 @@ const fromMarkdown: FromMarkdownExtension = {
this.exit(token);
},
},
};
});

export const remarkKbdNested: Plugin<IOptions[], Root> = function (
options: IOptions = {},
Expand Down

0 comments on commit ac775c2

Please sign in to comment.