title: Bootstrap 4 modal that contains markdown header link
body: <p>I'm using the following code to open a bootstrap 4 modal that contains a Markdown header link. The modal opens correctly but does not scroll to the correct header. I think this is because the page loads before the modal opens. Is there an event for triggering the scroll to header? Would that event be within showdownjs (what I'm using) or is it a standard implemented within the browser?</p>
  
  <pre><code>let split_url = location.href.split('#');
  $(".modal:has(#" + split_url[split_url.length - 1] + ")").modal('show');        
  </code></pre>