obsidian 新建页面--反链接那里的空白处能减少点吗

obsidian 新建页面–反链接那里的空白处能减短点吗
现在之间的留白有点多

预期的效果

有办法改成类似logseq的那种间距吗?

.markdown-source-view.mod-cm6 .cm-content {
    padding-bottom: 30px!important;
}
.markdown-source-view.mod-cm6 .cm-contentContainer {
    flex: none;
}

有办法让它显示在文件开头而不是文件末尾吗?

@epe

可以在runjs插件加载时执行以下js

(() => {
	let leafTimer;
	const onActiveLeafChange = async (activeLeaf) => {
		// 定时防止无效触发,只取最后一个触发
		if(leafTimer) clearTimeout(leafTimer)
            leafTimer = setTimeout(async () => {
            // 排除非markdown视图类型
			const viewType = activeLeaf?.view.getViewType();
			if('markdown' !== viewType) return;
			// 获取文件路径
			const filePath = activeLeaf?.view.getState().file
			if (!filePath) return;
			// 把反向链接插入到标题之后
			// 获取反向链接
			const embeddedBacklink = document.querySelector('.embedded-backlinks');
			if (!embeddedBacklink) return;
			// 获取标题
			const inlineTitle = document.querySelector('.inline-title');
			// 获取父元素
			const parentElement = inlineTitle.parentElement;
			// 将反向链接移除
			parentElement.removeChild(embeddedBacklink);
			// 把反向链接插入到标题之后
			parentElement.insertBefore(embeddedBacklink, inlineTitle.nextSibling);
		}, 42);
	};
	this.app.workspace.on('active-leaf-change', onActiveLeafChange);
	onActiveLeafChange(this.app.workspace.activeLeaf);
})();

非常感谢,正是我需要的!

现在页面打开都是有2行空的,


有没有办法新建页面只有一行空的「比如只留第一行」

不清楚,我这边没有出现这个问题,没法重现。

嗯嗯,好的,谢谢