cmgriffing / scully-image

An image placeholder and lazy loading plugin for Scully.
https://scully-image.github.io
17 stars 1 forks source link

How to use plugin in markdown file #41

Open emekaelo opened 2 years ago

emekaelo commented 2 years ago

dependencies

    "@angular/common": "~13.1.1",
    "@angular/core": "~13.1.1",
    "@scullyio/init": "^2.0.5",
    "@scullyio/ng-lib": "^2.0.0",
    "@scullyio/scully": "^2.0.0",
    "@scullyio/scully-plugin-puppeteer": "^2.0.0",
    "tslib": "^2.3.0",

I need to use this plugin with the images coming from the markdown file which is where I structure posts. A demo of how to use this plugin in the markdown file will also be appreciated.

cmgriffing commented 2 years ago

I think I have it working now. Try version 0.6.0. Take note of the need for a separate function registerScullyImageMarkdown that you will need to add to your scully config. The instructions to make it work should all be in the README. Let me know if I missed anything

cmgriffing commented 2 years ago

@BrunoElo Just bumping this again to see if it fixed things for you.

emekaelo commented 2 years ago

I get these errors when I run the npm i scully-image command

npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'has-to-string-tag-x@2.1.2',
npm WARN EBADENGINE   required: { node: '>=8.11.4', npm: '6.10.1' },
npm WARN EBADENGINE   current: { node: 'v16.17.0', npm: '8.15.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'has-symbol-support-x@2.1.2',
npm WARN EBADENGINE   required: { node: '>=8.11.4', npm: '6.10.1' },
npm WARN EBADENGINE   current: { node: 'v16.17.0', npm: '8.15.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'attempt-x@2.1.2',
npm WARN EBADENGINE   required: { node: '>=8.11.4', npm: '6.10.1' },
npm WARN EBADENGINE   current: { node: 'v16.17.0', npm: '8.15.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'simple-call-x@1.0.3',
npm WARN EBADENGINE   required: { node: '>=8.11.4', npm: '6.10.1' },
npm WARN EBADENGINE   current: { node: 'v16.17.0', npm: '8.15.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'util-pusher-x@1.0.3',
npm WARN EBADENGINE   required: { node: '>=8.11.4', npm: '6.10.1' },
npm WARN EBADENGINE   current: { node: 'v16.17.0', npm: '8.15.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'simple-bind-x@1.0.3',
npm WARN EBADENGINE   required: { node: '>=8.11.4', npm: '6.10.1' },
npm WARN EBADENGINE   current: { node: 'v16.17.0', npm: '8.15.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'has-working-bind-x@1.0.1',
npm WARN EBADENGINE   required: { node: '>=8.11.4', npm: '6.10.1' },
npm WARN EBADENGINE   current: { node: 'v16.17.0', npm: '8.15.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'noop-x@1.2.1',
npm WARN EBADENGINE   required: { node: '>=8.11.4', npm: '6.10.1' },
npm WARN EBADENGINE   current: { node: 'v16.17.0', npm: '8.15.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'has-boxed-string-x@2.1.1',
npm WARN EBADENGINE   required: { node: '>=8.11.4', npm: '6.10.1' },
npm WARN EBADENGINE   current: { node: 'v16.17.0', npm: '8.15.0' }
npm WARN EBADENGINE }
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE   package: 'is-primitive-x@1.0.1',
npm WARN EBADENGINE   required: { node: '>=8.11.4', npm: '6.10.1' },
npm WARN EBADENGINE   current: { node: 'v16.17.0', npm: '8.15.0' }
npm WARN EBADENGINE }