t by extension
	else if (REGEX_TYPE_MARKDOWN.test(href) || REGEX_TYPE_CODE.test(href)) {
		event.preventDefault();
		event.stopImmediatePropagation();
		fetch(href)
			.then(function (response) {
				if (response.ok) {
					return response.text();
				} else {
					throw new Error(response.statusText);
				}
			})
			.then(function (text) {
				showModal(popup);
				var content = popup.querySelector('.content');
				// Check if the window has marked library
				if (href.match(REGEX_TYPE_MARKDOWN) && window.