Skip to content

Commit

Permalink
fix(micromark-extension-kbd-nested)!: freeze html
Browse files Browse the repository at this point in the history
  • Loading branch information
shivjm committed Nov 6, 2021
1 parent bc9343c commit e54a3c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/micromark-extension-kbd-nested/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const DEFAULT_VARIABLE_DELIMITER = codes.slash;
* Extension for micromark to compile keyboard sequences as `<kbd>`
* elements and variable sequences as `<var>` elements. Can be passed
* in `htmlExtensions.` */
export const html: Extension = {
export const html: Extension = Object.freeze({
enter: {
[KEYBOARD_TYPE]: function (this: CompileContext): void {
this.tag("<kbd>");
Expand All @@ -101,7 +101,7 @@ export const html: Extension = {
this.tag("</var>");
},
},
};
});

/**
* Returns an extension for micromark to parse keyboard sequences
Expand Down

0 comments on commit e54a3c2

Please sign in to comment.