-
-
Notifications
You must be signed in to change notification settings - Fork 278
Closed
Description
To convert Kramdown::Document to other formats, you can invoke implicitly defined methods (to_*) via method_missing implementation.
However, invoking to_hash_ast fails as hash_ast is camelize to HashAst under the hood, but there defines a class HashAST.
I think there are some possible solutions, but I am still not sure what is the best way to solve it:
- Rename
HashASTclass toHashAst, but obviously it causes a breaking change - Define
to_hash_astexplicitly, but it lacks consistency and DRY implmentation - Modify
Kramdown::Utils.camelizeto supportHasAST, but, umm it looks not good
I will consider to send a pull request If there's a solution you prefer.
Metadata
Metadata
Assignees
Labels
No labels