Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
HTMLSerializer.serialize
has a chained if/else that ends with this:I propose supporting a custom fallback method that would allow subclasses to invoke the benefit of this serializer's method to deal with unknown/custom token types. this would allow custom parsers/tree-adapters the ability to override how something is rendered by changing the token type and registering a custom handler... which still leveraging the core serializer.
for example: