Files
OpenMAIC/lib/export/html-parser/index.ts
T
wyucandClaude Opus 4.6 843d33e5cc chore: enforce Prettier formatting and fix lint issues
- Add .prettierignore to exclude vendor packages, lock files, markdown, and YAML
- Update .prettierrc: printWidth 100, singleQuote, trailingComma "all"
- Run Prettier across all source files for consistent formatting
- Fix unused imports (UserRequirements, setTTSProvider)
- Fix eslint-disable comment placement after Prettier reformat

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 16:09:45 +08:00

16 lines
439 B
TypeScript

// Reference: https://github.com/andrejewski/himalaya — rewritten in TypeScript with simplified functionality
import { lexer } from './lexer';
import { parser } from './parser';
import { format } from './format';
import { toHTML } from './stringify';
export type { AST } from './types';
export const toAST = (str: string) => {
const tokens = lexer(str);
const nodes = parser(tokens);
return format(nodes);
};
export { toHTML };