Closed adam-zethraeus closed 10 years ago
I'm wondering whether a lot of this functionality might be serviced by a custom count function, like so:
downsize("...", function(token, stack, ...) {
return true/false;
});
(Or perhaps the function would be better passed in through the options object.)
Would this be as a substitute for actually implementing the functionality in downsize? I guess it becomes a matter of you choosing the scope of the project then!
I also think giving downsize a better comprehension of the underlying HTML might make custom handling a little easier.
I'm going to add some contribution guidelines and make sure the documentation is clear — but once that's done, could I give you push access to this repo?
That'd be awesome.
@zethraeus Does contextual tags satisfy this issue, or is there a deeper requirement here?
satisfies. thanks for pointing it out
status quo:
suggested addition:
Intended as a generic version of paragraphs:5 or something, but that could be added as a good shortcut too.
What do you think?