Skip to content

fix(gen-full): Avoid infinite loop when converting table/TOC to Markdown#9

Open
thangho98 wants to merge 1 commit intodotenvx:mainfrom
thangho98:patch-1
Open

fix(gen-full): Avoid infinite loop when converting table/TOC to Markdown#9
thangho98 wants to merge 1 commit intodotenvx:mainfrom
thangho98:patch-1

Conversation

@thangho98
Copy link

The existing turndown rule for 'table' elements caused a "Maximum call stack size exceeded" error due to recursive processing, particularly on pages with a Table of Contents (TOC).

This fix isolates the table conversion logic by using a dedicated turndown instance, preventing the infinite recursion caused by rule conflicts.

The existing turndown rule for 'table' elements caused a "Maximum call stack size exceeded" error due to recursive processing, particularly on pages with a Table of Contents (TOC).

This fix isolates the table conversion logic by using a dedicated turndown instance, preventing the infinite recursion caused by rule conflicts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant