diff --git a/source/_posts/jquery.md b/source/_posts/jquery.md index f334b0c..0b6b957 100644 --- a/source/_posts/jquery.md +++ b/source/_posts/jquery.md @@ -14,19 +14,20 @@ intro: | plugins: - tooltip - copyCode + - runCode --- ## Getting Started ### Including jQuery -```javascript {.wrap} +```html {.wrap} ``` #### Official CDN -```javascript {.wrap} +```html {.wrap} ``` diff --git a/themes/coo/layout/_partial/scripts.ejs b/themes/coo/layout/_partial/scripts.ejs index 2342322..9fa81dc 100644 --- a/themes/coo/layout/_partial/scripts.ejs +++ b/themes/coo/layout/_partial/scripts.ejs @@ -155,6 +155,19 @@ } } + if (document.querySelector('h1').textContent.includes('jQuery')) { + config = { + ...baseConfig, + markup: { + language: 'html', + content: `