Follow these steps if the issue occured immediately after upgrading to Yosemite or El Capitan.
- Open the Terminal app, which is in the Utilities folder of your Applications folder.
- Type this command in Terminal:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -seed
- Press Return and wait for the Terminal prompt—which ends in $—to reappear. It may take a few minutes.
- Quit Terminal.
You should now see the expected Share and Markup features. If not, go to Apple menu > System Preferences, click Extensions, and make sure that the Markup and sharing features are turned on in the Actions and Share Menu sections.
If another user account on your Mac has the same issue, log in to that account and repeat these steps.