jaywcjlove / jaywcjlove/html-to-markdown-cli
max call stack exceeded with 15mb html file
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 121
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
I was trying to serialize the colorado revised statute and found an edge case, just in case you want to optimize. for my purposes I dont need to fix this as there are html files split by section included as well.
https://leg.colorado.gov/agencies/office-legislative-legal-services/2023-crs-titles-download
[crs2023-index.htm.tar.gz](https://github.com/user-attachments/files/15780356/crs2023-index.htm.tar.gz)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the max-call-stack failure with the attached crs2023-index.htm.tar.gz file or the linked Colorado statute download. Trace the serialization path that processes the 15 MB HTML input; done means the CLI can serialize this file without exceeding the call stack.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100