Skip to content

Commit

Permalink
fix: markdown types
Browse files Browse the repository at this point in the history
  • Loading branch information
whilefoo committed Aug 31, 2023
1 parent b5446a8 commit d00af2c
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/types/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ export enum MarkdownItem {
Definition = "definition",
Emphasis = "emphasis",
Heading = "heading",
Heading1 = "heading1",
Heading2 = "heading2",
Heading3 = "heading3",
Heading4 = "heading4",
Heading5 = "heading5",
Heading6 = "heading6",
HTML = "html",
Image = "image",
ImageReference = "imageReference",
Expand All @@ -33,6 +27,13 @@ export enum MarkdownItem {
Table = "table",
TableCell = "tableCell",
TableRow = "tableRow",
// Our custom types to make it compatible with HTML
Heading1 = "heading1",
Heading2 = "heading2",
Heading3 = "heading3",
Heading4 = "heading4",
Heading5 = "heading5",
Heading6 = "heading6",
}
export const MarkdownItems = [
MarkdownItem.BlockQuote,
Expand Down Expand Up @@ -60,4 +61,10 @@ export const MarkdownItems = [
MarkdownItem.Table,
MarkdownItem.TableCell,
MarkdownItem.TableRow,
MarkdownItem.Heading1,
MarkdownItem.Heading2,
MarkdownItem.Heading3,
MarkdownItem.Heading4,
MarkdownItem.Heading5,
MarkdownItem.Heading6,
] as const;

0 comments on commit d00af2c

Please sign in to comment.