You simply need to add a modal-trigger class to your button and the ID of the container with your modal's content in the data-modal attribute.
Just like with buttons, just add a modal-trigger class to your anchor tag and the ID of the container with your modal's content in the data-modal attribute. The script takes care of preventing the default behaviour for you.