mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-24 19:32:07 +00:00
Fix rendering of images in reusable content from an external space (#3960)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"gitbook": patch
|
||||
---
|
||||
|
||||
Fix rendering of images in reusable content from an external space with the new dereferencing in the API.
|
||||
@@ -137,6 +137,10 @@ export async function resolveContentRef(
|
||||
}
|
||||
|
||||
case 'file': {
|
||||
if (isContentRefInDifferentSpace(contentRef, context)) {
|
||||
return resolveContentRefInSpace(contentRef.space, context, contentRef, options);
|
||||
}
|
||||
|
||||
const file = getRevisionFile({ revision, fileId: contentRef.file });
|
||||
if (file) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user