diff --git a/apps/edr-freight-api/src/migrations/3370000000000-SupportHelpInlineMedia.ts b/apps/edr-freight-api/src/migrations/3370000000000-SupportHelpInlineMedia.ts new file mode 100644 index 000000000..3301056e4 --- /dev/null +++ b/apps/edr-freight-api/src/migrations/3370000000000-SupportHelpInlineMedia.ts @@ -0,0 +1,91 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +/** + * Folds each help section's `media[]` array into its markdown body. + * + * Attachments used to hang off the section as a separate list, rendered after + * the text — which meant an author could not put a picture next to the sentence + * it illustrates, and had two different places to manage media. They are now + * embedded with markdown's image syntax, and the renderer picks `` or + * `