REFACTOR: Attach resize controls to images from the markdown pipeline (PR #8314)

GitHub

You’ve signed the CLA, romanrizzi. Thank you! This pull request is ready for review.

hmmm why was this break in there?

how do we make sure this rule only applies when cooking text in “preview” mode on the server when we do the cooked post processor?

@SamSaffron

What about conditionally appllying the rule:

helper.registerPlugin(md => {
    if (opts.previewing) {
      md.core.ruler.after("upload-protocol", "resize-controls", rule);
    }
  });
1 Like

I believe it’s not possible for the upload:// to be present more than once. I think I removed it by accident, will add it again.

Sounds like a good idea !