Commit f83e613
Fix asciidoctor v4 ESM import to unbreak Publish to website (#640)
asciidoctor 4.x removed the default export and the factory-function API:
the old `import asciidoctor from 'asciidoctor'` + `asciidoctor().convert()`
now throws "does not provide an export named 'default'" at module load, so
every Publish to website run has failed since the v4 bump landed.
Switch to the v4 named `convert` export and await its two call sites (both
already inside async callbacks). v4's convert produces byte-for-byte
identical HTML to v3 on the learning-path articles, so published output is
unchanged.
Claude-Session: https://claude.ai/code/session_01H1niVBoyczk8mXe9L7Fnzv
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent f310d49 commit f83e613
1 file changed
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | | - | |
| 92 | + | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
112 | | - | |
| 111 | + | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
| |||
0 commit comments