diff --git a/manifest.json b/manifest.json index e9396b1..cf4223d 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Enlight", - "version": "2.0.9.12", + "version": "2.1.9.12", "homepage_url": "https://github.com/Qeole/Enlight", "description": "__MSG_description__", "default_locale": "en", diff --git a/scripts/enlight-background.js b/scripts/enlight-background.js index 3473505..3f96995 100644 --- a/scripts/enlight-background.js +++ b/scripts/enlight-background.js @@ -138,8 +138,9 @@ function checkBodyListener(p) { case "checkBodyPort": p.onMessage.addListener((m) => { console.debug("[enlight] Do we detect a code block?", m.isCodeBlock); - doHighlight("auto"); - isHighlighted = true; + if (m.isCodeBlock) + doHighlight("auto"); + isHighlighted = m.isCodeBlock; }); break; case "detectedLanguage":