fix: header 2 lignes + aperçu utilise /raw + corrige regex newline
This commit is contained in:
@@ -653,8 +653,8 @@ export const GraphViewManager = {
|
||||
// Show loading indicator
|
||||
this._showPreviewTooltip(node, 'Chargement...', screenX, screenY);
|
||||
try {
|
||||
const data = await api(`/api/file/${encodeURIComponent(this._vault)}?path=${encodeURIComponent(node.path)}`);
|
||||
const content = (data.content || '').substring(0, 400).replace(/\\n/g, ' ');
|
||||
const data = await api(`/api/file/${encodeURIComponent(this._vault)}/raw?path=${encodeURIComponent(node.path)}`);
|
||||
const content = (data.raw || '').substring(0, 400).replace(/\n/g, ' ');
|
||||
this._previewCache[cacheKey] = content;
|
||||
this._showPreviewTooltip(node, content, screenX, screenY);
|
||||
} catch {
|
||||
|
||||
Reference in New Issue
Block a user