obsidian-lineage
obsidian-lineage copied to clipboard
A question about empty line
I noticed that there is code like this in main.js
, I would like to ask why empty lines should be replaced with  
·.
thanks
// src/view/actions/markdown-preview-action.ts
var markdownPreviewAction = (element2, nodeId) => {
const plugin = getPlugin();
const view = getView();
const store = view.documentStore;
const render = (content) => {
if (view && element2) {
element2.empty();
if (content.length > 0 && !/^> /.test(content)) {
content = content.replace(/^$/gm, " ");
}
import_obsidian3.MarkdownRenderer.render(
plugin.app,
content,
element2,
store.getValue().file.path,
view
);
}
};
const $content = contentStore(view, nodeId);
const unsub = $content.subscribe((content) => {
render(content);
});
return {
destroy: () => {
unsub();
}
};
};