**Summary of Optimizations:**
1. **Redundant Calls**: Captured `get_date_input()` in the variable `date_input` to reduce redundant calls.
2. **Reuse Computations**: Calculated `name_snake_case` and `name_kebab_case` once and reused them instead of recalculating multiple times.
3. **Better Loop**: Used a tuple of tuples for `placeholders`, iterating through once and applying replacements in sequence.
These changes improve the efficiency of the `replace_placeholders` function by reducing redundant calculations and I/O operations, resulting in better runtime performance.
Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
* Bundle Font Awesome 6 fonts
* hope to skip less tests with font awesome fix
* update schema
* format
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fix
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix#272
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* use #emph and #strong instead of underscores and asterisks
* convert remaining asterisks
* templater #strong and #emph
Change templater to use #strong and #emph instead of * and _ respectively.
* update classic test files (no pdf diff)
* update engineeringclassic test files (no pdf diff)
* update sb2nov test files (no pdf diff)
* update engineeringrer test data (minor pdf diff)
engineeringresumes_empty_long_second_row.pdf
0 of 1 pages differ.
engineeringresumes_empty_short_second_row.pdf
0 of 1 pages differ.
engineeringresumes_filled_long_second_row.pdf
13 of 39 pages differ.
engineeringresumes_filled_short_second_row.pdf
14 of 45 pages differ.
The diff is one extra comma which tbh, was probably supposed to be there anyway:
Old: `Bogaziçi University in Mechanical Engineering: - Istanbul, Turkey`
New: `Bogaziçi University, in Mechanical Engineering: - Istanbul, Turkey`
* update moderncv test data (minor pdf diff)
moderncv_empty_long_second_row.pdf
0 of 1 pages differ.
moderncv_empty_short_second_row.pdf
0 of 1 pages differ.
moderncv_filled_long_second_row.pdf
14 of 46 pages differ.
moderncv_filled_short_second_row.pdf
14 of 46 pages differ.
Same diff as for engineeringresumes -- one extra comma which, was probably supposed to be there anyway:
Old: `Bogaziçi University in Mechanical Engineering: - Istanbul, Turkey`
New: `Bogaziçi University, in Mechanical Engineering: - Istanbul, Turkey`
* update markdown_to_typst test
* fix link fixing
* add link fixing test
* update templater.py
* fix a test
* fix a linting error
---------
Co-authored-by: Sina Atalay <dev@atalay.biz>