Skip to content

Commit

Permalink
Updated Markdown Tag 📝
Browse files Browse the repository at this point in the history
  • Loading branch information
MarketingPip authored Sep 7, 2022
1 parent 8ecc525 commit e8861f4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions markdown-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ MD_TAG[i].innerHTML = converter.makeHtml(MD_TAG[i].innerHTML.replace(/>/g, '>

if (document.querySelectorAll('[github-md]').length > 0) {

addCss('https://cdn.jsdelivr.net/gh/MarketingPipeline/Markdown-Elements/stylesheets/github_md.css');
addCss('https://cdn.jsdelivr.net/gh/MarketingPipeline/Markdown-Tag/stylesheets/github_md.min.css');


var converter = new showdown.Converter()
Expand Down Expand Up @@ -101,7 +101,7 @@ MD_TAG[i].innerHTML = converter.makeHtml(MD_TAG[i].innerHTML.replace(/>/g, '>

if (document.getElementsByTagName("github-md").length > 0) {

addCss('https://cdn.jsdelivr.net/gh/MarketingPipeline/Markdown-Elements/stylesheets/github_md.css');
addCss('https://cdn.jsdelivr.net/gh/MarketingPipeline/Markdown-Tag/stylesheets/github_md.min.css');


var converter = new showdown.Converter()
Expand Down Expand Up @@ -134,12 +134,11 @@ GitHub_MD_TAG[i].innerHTML = converter.makeHtml(GitHub_MD_TAG[i].innerHTML.repla




function loadMarkdownParser(){

/// Add Markdown Parser To Document
var script = document.createElement('script');
script.src = "https://cdn.jsdelivr.net/gh/MarketingPipeline/Markdown-Elements/parsers/showdown.min.js";
script.src = "https://cdn.jsdelivr.net/gh/MarketingPipeline/Markdown-Tag/parsers/showdown.min.js";

document.head.appendChild(script); //or something of the likes

Expand Down

0 comments on commit e8861f4

Please sign in to comment.