We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 063921c commit e5bafd6Copy full SHA for e5bafd6
packages/mdream/src/const.ts
@@ -130,7 +130,7 @@ export const NodeEventEnter = 0
130
export const NodeEventExit = 1
131
132
// Map string tag names to numeric constants
133
-export const TagIdMap: Record<string, number> = {
+export const TagIdMap = {
134
html: TAG_HTML,
135
head: TAG_HEAD,
136
details: TAG_DETAILS,
@@ -239,7 +239,7 @@ export const TagIdMap: Record<string, number> = {
239
header: TAG_HEADER,
240
figcaption: TAG_FIGCAPTION,
241
caption: TAG_CAPTION,
242
-}
+} as const
243
244
// Pre-defined strings to avoid repeated allocations
245
export const MARKDOWN_STRONG = '**'
0 commit comments