Commit 82013bd
committed
Fix notebook-view.url being ignored
When notebook-view.url is specified, notebook links should point to the
external URL instead of rendering a local preview. This was broken in
v1.4.156 (commit faba735) when the notebook system was refactored and external URL handling was accidentally removed.
The fix restores the check for descriptor?.url before falling back to
the local preview path in format-html-notebook-preview.ts.
Updated existing test to verify links contain the external URL.
(cherry picked from commit a39cc61)
Move changelog entry as backport in v1.8
# Conflicts:
# news/changelog-1.9.md1 parent bf70ee6 commit 82013bd
File tree
3 files changed
+4
-2
lines changed- news
- src/format/html
- tests/docs/smoke-all/2023/01/05
3 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments