Skip to content

Use visitor pattern #13

@agentofuser

Description

@agentofuser

It hadn't occurred to me that the visitor pattern could be used here, so I did the stack-based explicit recursion thing, but that only works it all the headings and content are top-level children of the root element. If they are already nested within, for instance, some arbitrary div, it doesn't work.

remark-sectionize does that much more elegantly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions