From 92572709b97d14f78d7bc880d40f992fe652026b Mon Sep 17 00:00:00 2001 From: sec77 Date: Wed, 31 May 2023 13:28:26 +0200 Subject: [PATCH] 1.5.6 --- Changelog.md | 7 ++++++- docker-compose-dev.yml | 1 + perlite/.js/perlite.js | 6 +++++- perlite/PerliteParsedown.php | 2 +- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index 16d164f1..69decb46 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,8 +1,13 @@ +## 1.5.6 +- fixed heading references (issue #74) +- added safemode environment variable (PR #88) thanks to @NotGovernor +- added default side panel size related of screen size (issue #85) + + ## 1.5.5 - updated some html structure to fit the latest app.css and theme styles - updated app.css - removed Bootstrap dependency -- fixed heading references (issue #74) - fixed ampersand problem in global graph (issue #47) - added default font size environment variable (issue #80) - added escape key function for modal close button (PR #82) thank to @stellarix diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index c37f9612..27aa72d2 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -13,6 +13,7 @@ services: - SHOW_TOC=true - HOME_FILE=README - FONT_SIZE=15 + - HTML_SAFE_MODE=true volumes: - ./perlite:/var/www/perlite - ./perlite/Demo:/var/www/perlite/Demo:ro diff --git a/perlite/.js/perlite.js b/perlite/.js/perlite.js index 490dc8a4..c6a478bc 100644 --- a/perlite/.js/perlite.js +++ b/perlite/.js/perlite.js @@ -890,10 +890,14 @@ $(document).ready(function () { // panel sizes if (localStorage.getItem('leftSizePanel')) { $('.workspace-split.mod-horizontal.mod-left-split').css("width", localStorage.getItem('leftSizePanel')) - }; + } else { + $('.workspace-split.mod-horizontal.mod-left-split').css("width", window.innerWidth / 6) + } if (localStorage.getItem('rightSizePanel')) { $('.workspace-split.mod-horizontal.mod-right-split').css("width", localStorage.getItem('rightSizePanel')) + } else { + $('.workspace-split.mod-horizontal.mod-right-split').css("width", window.innerWidth / 6) }; diff --git a/perlite/PerliteParsedown.php b/perlite/PerliteParsedown.php index 76a1f491..7b3ac508 100644 --- a/perlite/PerliteParsedown.php +++ b/perlite/PerliteParsedown.php @@ -452,7 +452,7 @@ protected function inlineTag($Excerpt) if ($len == 0) { return; } - if (trim(substr($Excerpt['context'],-2)) === ']') { + if (substr(trim($Excerpt['context']),-1) === ']') { return; }