I found that usage of a plugin module through classical CJS way require('@marp-team/marpit/plugin') is not working.
This PR makes compatible @marp-team/marpit/plugin with CJS require(), ESM default export, and ESM named export. Now Marpit plugin example explained at https://marpit-api.marp.app will work correctly.
I found that usage of a plugin module through classical CJS way
require('@marp-team/marpit/plugin')
is not working.This PR makes compatible
@marp-team/marpit/plugin
with CJSrequire()
, ESM default export, and ESM named export. Now Marpit plugin example explained at https://marpit-api.marp.app will work correctly.