Convert DOM tree to an output string. #4

Closed
opened 2025-10-14 12:10:43 -07:00 by azpect · 2 comments
Owner

Once the DOM tree is generated by the parser, a class or method should exist to convert the tree into a readable HTML output string.

This string will be converted and returned somehow for use in the file handling module to create a final output.

If this issue is too "large", feel free to break it into smaller pieces.

Once the DOM tree is generated by the parser, a class or method should exist to convert the tree into a readable HTML output string. This string will be converted and returned somehow for use in the file handling module to create a final output. If this issue is too "large", feel free to break it into smaller pieces.
azpect added the
Kind/Feature
Priority
Low
labels 2025-10-14 12:10:43 -07:00
azpect added this to the (SPRINT) HTML String Output project 2025-10-14 12:10:43 -07:00
Author
Owner

This will be done using a DFS algorithm on the generated DOM.

Though Markdown doesn't have much of a tree-like structure, this might be a bit odd. But it's still a DFS, since that is how we parse trees.

If we allow support for inline HTML, <div>'s for example, then the tree will become more complex.

This will be done using a DFS algorithm on the generated DOM. Though Markdown doesn't have much of a tree-like structure, this might be a bit odd. But it's still a DFS, since that is how we parse trees. If we allow support for inline HTML, `<div>`'s for example, then the tree will become more complex.
azpect moved this to To Do in (SPRINT) HTML String Output on 2025-10-17 13:18:46 -07:00
Author
Owner

This is completed.

This is completed.
azpect moved this to Done in (SPRINT) HTML String Output on 2025-10-17 13:19:10 -07:00
Sign in to join this conversation.
No description provided.