...
Go to Bitbucket and create an app password by navigating to your profile → Personal settings → App Password. Copy the Password to a secure location.
Log in to Confluence as an administrator Administrator and create a markdown profile by navigating to Settings → Markdown configuration → profiles and then click Add profile.
In the Profile section, enter a Profile name, choose Profile type as URL and give the URL of the markdown file like https://api.bitbucket.org/2.0/repositories/$workspace/$repo/src/$commit/$filepath
Provide your bitbucket user name and password that is produced in step# 1.
Use Markdown from a URL macro in your confluence page and provide created Profile name to show markdown content.
...