These are chat archives for wooorm/remark
1) Yeah, adding types could be useful there as well
TBH I think adding just typing for nodes and not using them in libs themselves could be less useful because types will diverge from implementation easily. Annotating source code is a way bigger task.
2) I don't really much PostCSS API and have limited experience with it. Remark does much better from the point of view of AST structure. AST as plain JSON objects make much more sense to me. What I dislike a bit is how extensions are implemented — via mutating prototypes. This looks fragile. I'm not sure what to propose here though.
Anyway, I'm enjoying working with remark. Thank you!