diff --git a/constant.php b/constant.php index 59f57cf..4215b45 100644 --- a/constant.php +++ b/constant.php @@ -2,6 +2,6 @@ const APP_NAME = "ph-Bookshelf"; -const VERSION = "0.3.0.13"; +const VERSION = "0.3.0.14"; const CHANNEL = "suk-ws"; const BRANCH = "master"; diff --git a/src/Data/SiteMeta.php b/src/Data/SiteMeta.php index 72650b4..c08a830 100644 --- a/src/Data/SiteMeta.php +++ b/src/Data/SiteMeta.php @@ -39,6 +39,8 @@ class SiteMeta { // "/assets/ref.css", (PageMeta::getConfigurationLevelPage("customization.article.codeblock.highlightjs")=="false"? null:"//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/".PageMeta::highlightJsTheme().".min.css"), + (PageMeta::getConfigurationLevelPage("customization.article.regex.highlight")=="false")? + null:"//cdn.jsdelivr.net/gh/suk-ws/regex-colorizer@master/regex-colorizer-default.min.css", "/assets/bread-card-markdown.css?ver=1", (PageMeta::getConfigurationLevelPage("customization.article.listing.rainbow.marker")=="true"? "/assets/bread-card-markdown-enhanced-listing-rainbow.css?ver=1":null), @@ -55,6 +57,8 @@ class SiteMeta { // "/assets/ref.js", (PageMeta::getConfigurationLevelPage("customization.article.codeblock.highlightjs")=="false"? null:"//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"), + (PageMeta::getConfigurationLevelPage("customization.article.regex.highlight")=="false"? + null:"//cdn.jsdelivr.net/gh/suk-ws/regex-colorizer@master/regex-colorizer.min.js"), "/assets/utils-touchscreen-event.js?ver=1", "/assets/main.js?ver=1", ); diff --git a/template/footer.php b/template/footer.php index 4f080df..0c1827a 100644 --- a/template/footer.php +++ b/template/footer.php @@ -15,6 +15,8 @@ pageCurrentId = "getId() ?>"; hljs.highlightAll(); + RegexColorizer.coloringAll();