Skip to content

Commit 364a96c

Browse files
authored
Merge pull request #18 from divengine/develop
Improvements to the PDF build process
2 parents 27ed37c + 1981ff4 commit 364a96c

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@ vendor/*
33
composer.lock
44
.obsidian
55
.vscode
6-
.phpunit.result.cache
6+
.phpunit.result.cache
7+
__pycache__
8+
build/

docs/ChangeLog/releases/v6.1.2.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ Date: 2026-02-07
55
This release focuses on project robustness and delivery quality. It adds a comprehensive suite of unit and case-based tests, plus CI workflows to run PHPUnit and PHPStan. It also includes extensive documentation and an automated release pipeline that produces artifacts (source ZIP and documentation PDF) with versioned release notes. The engine received a small tag/dialect handling refactor to enable future improvements without impacting expected performance.
66

77
## Commits
8+
- [Update .gitignore to exclude __pycache__ and build directories; enhance sanitize_markdown_for_pdf to escape dollar signs](https://github.com/divengine/div/commit/de64b216f6fff9a1c010e31bb856694bc44b5be5)
9+
- [Merge branch 'develop' of github.com:divengine/div into develop](https://github.com/divengine/div/commit/7fd6a985f11dc10abb54b81ce801e8fbfbd3438b)
10+
- [Update ChangeLog for release v6.1.2 to include additional recent commits](https://github.com/divengine/div/commit/09acfcef1847239e772400e27ca206d9606b409f)
811
- [Enhance sanitize_markdown_for_pdf to protect code blocks, inline code, and LaTeX commands](https://github.com/divengine/div/commit/a80b6c8791b998ea38f0cc5680064406b8b89f2b)
12+
- [Merge branch 'master' into develop](https://github.com/divengine/div/commit/3090eed5429cddf3591ab3211e0bcd91aca198c5)
913
- [Merge branch 'develop' of github.com:divengine/div into develop](https://github.com/divengine/div/commit/d9904b6e371a8ab126123d98d975fd0afae57ab3)
1014
- [Add sanitize_markdown_for_pdf function to handle embedded and remote images](https://github.com/divengine/div/commit/5d3027486ebd4f660efe1bab9d70a2d2f7b20b51)
15+
- [Merge pull request #15 from divengine/develop](https://github.com/divengine/div/commit/6604b3d9b9f64f508f2d836514ee0ad6f603908e)
1116
- [Merge branch 'master' into develop](https://github.com/divengine/div/commit/6c3a70ba241139652514d2f98555eb0fdd917343)
1217
- [Update ChangeLog for release v6.1.2 to include recent commits](https://github.com/divengine/div/commit/1a87213db2a3dfa5647a60e0541359fa6dabc344)
1318
- [Add release workflow and documentation updates for automated releases](https://github.com/divengine/div/commit/a0e74a939ff85baa76ec4fac3c9fa6814fed9d30)

scripts/build_pdf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ def repl(match):
106106

107107
# Escape stray backslashes so LaTeX doesn't treat them as commands.
108108
markdown = markdown.replace("\\", "\\textbackslash{}")
109+
# Escape dollar signs to avoid Pandoc math parsing.
110+
markdown = markdown.replace("$", "\\$")
109111

110112
def restore(text, bucket, token):
111113
for idx, original in enumerate(bucket):

0 commit comments

Comments
 (0)