hml-equation-parser
Version: 0.1.2 (Python)
Copyright 2018 Open Bapul (OpenBapul/hml-equation-parser)
License: Apache License, Version 2.0
Source: https://github.com/OpenBapul/hml-equation-parser

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Full license text: hml-equation-parser.LICENSE

---

Usage in kordoc:
The HWPX equation script → LaTeX converter (src/hwpx/equation.ts) is derived
from hml-equation-parser's hulkEqParser.py and hulkReplaceMethod.py modules.
The algorithm was re-implemented in TypeScript with no material changes —
the 5-pass rewrite (frac → rootOf → matrix → bar → brace), the bracket-matching
helpers, and the three conversion maps (CONVERT_MAP, MIDDLE_CONVERT_MAP,
BAR/MATRIX/BRACE_CONVERT_MAP) are faithful ports of the original Python.

Modifications:
- TypeScript rewrite from Python 3
- Inlined convertMap.json as TS constants (resolveJsonModule kept optional)
- Added graceful fallback in the HWPX parser: if conversion throws, the
  equation is dropped instead of leaking the HWP alt-text ("수식입니다").
