Skip to content

Commit

Permalink
config: export types and enums
Browse files Browse the repository at this point in the history
  • Loading branch information
nparashar150 committed Sep 8, 2024
1 parent 2037b8f commit 62d429c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { lexer } from "./lexer";
import type { Token } from "./configs";
import { TokenType, MAX_NESTING_DEPTH } from "./configs";

export const generateASTFromMarkdown = (input: string) => {
const tokens = lexer(input);
return tokens;
};

export type { Token };
export { TokenType, MAX_NESTING_DEPTH };

0 comments on commit 62d429c

Please sign in to comment.