Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to expand #158

Open
gamess431 opened this issue Apr 28, 2024 · 1 comment
Open

Impossible to expand #158

gamess431 opened this issue Apr 28, 2024 · 1 comment

Comments

@gamess431
Copy link

The processNode function from the GeneratingProvider interface requires a specific implementation of the HtmlGenerator.HtmlGeneratingVisitor class rather than an abstraction while HtmlGenerator.HtmlGeneratingVisitor implements the RecursiveVisitor interface.

interface GeneratingProvider {
    fun processNode(visitor: HtmlGenerator.HtmlGeneratingVisitor, text: String, node: ASTNode)
}

Please replace HtmlGenerator.HtmlGeneratingVisitor with RecursiveVisitor in the parameters of the GeneratingProvider interface so you can expand or create your own generator! Also, make the class HtmlGenerator open so that it can be extended.

@gamess431
Copy link
Author

i wanted to write a converter from markdown to json, but duo to this imitation i was unable.

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

No branches or pull requests

1 participant