diff --git a/CHANGELOG.md b/CHANGELOG.md index da59662..4615392 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 2.0.5 - 28th November 2024 +- fix spaces in code block for epub + ## 2.0.4 - 23th November 2024 - Fine tuning for PHP 8.4 - Adding "Books created with Ibis Next" section in readme diff --git a/src/Commands/BuildEpubCommand.php b/src/Commands/BuildEpubCommand.php index c26a413..cabf9a3 100644 --- a/src/Commands/BuildEpubCommand.php +++ b/src/Commands/BuildEpubCommand.php @@ -113,7 +113,7 @@ protected function buildEpub( $book->addCSSFile("style.css", "css1", $this->getStyle($this->config->workingPath, "style")); //$cssData = file_get_contents("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github.css"); - $cssData = file_get_contents("https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.16.2/build/styles/github-gist.min.css"); + $cssData = file_get_contents("https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.18.5/build/styles/github-gist.min.css"); $book->addCSSFile("github.css", "css2", $cssData); // @@ -149,6 +149,8 @@ protected function buildEpub( foreach ($chapters as $key => $chapter) { $this->output->writeln('==> ❇️ ' . $chapter["mdfile"] . ' ...'); + // fixing html + $chapter["html"] = str_replace("  addChapter( chapterName: Arr::get($chapter, "frontmatter.title", "Chapter " . ($key + 1)), fileName: "Chapter" . $key . ".html",