Ghost/ghost/external-media-inliner
Naz 6fa00faaa2
Added naive domain matching when inlining media
refs https://github.com/TryGhost/Toolbox/issues/524

- Mobiledoc from a migrated content could contain html/markdown cards that could have a variety of different resource <> url pairs. To avoid complex logic and parsing html/md going with a simplest approach - matching external content URLs purely based on provided domains. This gives useful enough of a tool to migrate external content for a specific service (e.g Revue)
- In cases where the content is not supported the fetching will fail with a message and move on to the next match - which is a reasonable behavior for a migration tool
2023-03-08 15:22:51 +08:00
..
lib Added naive domain matching when inlining media 2023-03-08 15:22:51 +08:00
test Added naive domain matching when inlining media 2023-03-08 15:22:51 +08:00
.eslintrc.js Added ExternalMediaInliner package scaffolding 2023-03-03 17:07:50 +08:00
index.js Added ExternalMediaInliner package scaffolding 2023-03-03 17:07:50 +08:00
package.json Added media inliner for mobiledoc content 2023-03-06 15:44:22 +08:00
README.md Added ExternalMediaInliner package scaffolding 2023-03-03 17:07:50 +08:00

External Media Inliner

Service that processes post contents and downloads/inlines external media

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests