umputun / remark42

comment engine
https://remark42.com
MIT License
4.78k stars 375 forks source link

Publish client library to npm #240

Open webkonstantin opened 5 years ago

webkonstantin commented 5 years ago

It would be nice to be able to use remark client library directly instead of dropping script tags on the page

Something like this

const remark = require('remark')

remark.embed(node, options)
remark.counter(node, options)
remark.lastComments(node, options)
igoradamenko commented 5 years ago

Yep, we'll do it after switching from iframe widget to iframe-less (https://github.com/umputun/remark/issues/218#issuecomment-438005245). Right now it's overengineering to try to extract things from current widget to the package and to the iframe widget.

I'm leaving this issue open as a reminder. Thanks.

akellbl4 commented 2 years ago

Possible Requirements:

Ideas: