This is not really nodebb issue, but not sure where to ask.
I am migrating 350k+ records, between post.content and user.signatures, my migrator is almost ready but I am having serious memory issues when trying to convert html-to-markdown using html-md, I keep getting segmentation faults, out-of-memory errors, again, clearly not your problem, but I guess this module is not designed to convert at a large scale, more like a client side tool.
I am wondering if I can disable HTML sanitization on nodebb-plugin-markdown then write a nodebb-plugin- that will sanitize and convert html to md on the client side, using the same html-md module, but I am not sure how to do that, I can clearly inject some js to do the job, but can I count on the .post-content, .post-signature to always be there? that seams so fragile, also, what about the "recent-replies" sidebar?
Also not sure if thats even possible, the script tags are easy to remove, but what about other tags with inline javascript code in them <a href="javascript:doEvil();">
?
Again, that's not really NodeBB's problem but I and anyone else migrating to, would appreciate an advice.
Thanks