This repository was archived by the owner on Mar 26, 2026. It is now read-only.
Commit ddc8ecd
committed
chore: specify verify_format=False when running pypandoc
Without this, *every* call to pypandoc.convert_text starts pandoc
three times: once to list the input formats, once to list the output
formats, and once to actually perform the conversion.
With `verify_format=False`, the first two invocations are skipped. For
some APIs this can make a huge difference to the speed of generation
(listerally about 45% in one test I've performed). We shouldn't need
to verify that the formats are supported, as we always use commonmark
and rst.
Fixes #2503.1 parent 7d20fbb commit ddc8ecd
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
0 commit comments