Convert DOM tree to an output string. #4
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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 is completed.