Commit 45f81e9
authored
Overleaf's CLSI always names the main compile output 'output.pdf'.
The previous find(f => f.type === 'pdf') could match figure PDFs or
*-eps-converted-to.pdf intermediates that appear earlier in the array.
Now explicitly matches path === 'output.pdf' first, with a fallback
to type === 'pdf' for non-standard CLSI responses.
Fixes #26
1 parent 881ceef commit 45f81e9
2 files changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
697 | 697 | | |
698 | 698 | | |
699 | 699 | | |
700 | | - | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
701 | 705 | | |
702 | 706 | | |
703 | 707 | | |
| |||
2059 | 2063 | | |
2060 | 2064 | | |
2061 | 2065 | | |
2062 | | - | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
2063 | 2070 | | |
2064 | 2071 | | |
2065 | 2072 | | |
| |||
0 commit comments