tDefaults({
      "remove-trailing": true,
      "remove-indent": true,
      "left-trim": true,
      "right-trim": true,
    });

    // handle links with @href started with '#' only
    $(document).on("click", 'a[href^="#"]', function (e) {
      // target element id
      var id = $(this).attr("href");

      // target element
      var $id = $(id);
      if ($id.length === 0) {
        return;
      }

      // prevent standard hash navigation (avoid blinking in IE)
      e.preventDefault();

      // 