const data_get = document.getElementById("data_get"); const urlParams = new URLSearchParams(window.location.search); const source = urlParams.get("src") || "blog"; const blog = urlParams.get("blog") || "mtr"; const conv = new showdown.Converter({ simplifiedAutoLink: true, simpleLineBreaks: true, requireSpaceBeforeHeadingText: true, encodeEmails: true, excludeTrailingPunctuationFromURLs: true, omitExtraWLInCodeBlocks: true, }); fetch( `https://${source}.abtmtr.link/api/collections/${blog}/posts/${urlParams.get( "slug" )}?body=html` ) .then((x) => x.json()) .then(({ data }) => { data_get.innerHTML = `