As jordanjay29 mentioned, this feature is added by extensions. However, both s9e/mediaembed and fof/formatting simply enable a plugin in TextFormatter, the formatter Flarum uses to convert posts to HTML. I'm not sure how you could edit the parameters without either forking the TextFormatter package and finding the code for it, or editing the code in vendor, which is not recommended.