Markdown 笔记 + 参考文献
笔记的 content 是 Markdown — 标题、列表、粗体、链接全部呈现。最突出的是[[Name]]:它成为活节点引用。单击一个以选择该节点,将鼠标悬停以突出显示它。引用通过节点 ID 或标签解析,因此随着图形的增长它们仍然有意义。
将鼠标悬停在注释中的彩色参考上以突出显示其节点;单击其中一个以将其选中。
js
// `content` is Markdown. `[[Name]]` becomes a live node reference — click to select
// the node, hover to highlight it. It matches a node by id or label.
const notes = [
{
id: 'release-notes',
color: '#C4B5FD',
x: 60,
y: -180,
width: 270,
height: 250,
content: `# Release 2.0
**Owner:** [[API]]
- [[Frontend]] redesign
- Finish the [[Docs]]
- Cut the [[Release]]
See the [changelog](https://example.com).`
}
]js
const data = {
nodes: [
{ id: 'planning', data: { label: 'Planning' } },
{ id: 'design', data: { label: 'Design' } },
{ id: 'api', data: { label: 'API' } },
{ id: 'frontend', data: { label: 'Frontend' } },
{ id: 'docs', data: { label: 'Docs' } },
{ id: 'release', data: { label: 'Release' } }
],
edges: [
{ from: 'planning', to: 'design' },
{ from: 'design', to: 'api' },
{ from: 'design', to: 'frontend' },
{ from: 'api', to: 'docs' },
{ from: 'frontend', to: 'docs' },
{ from: 'docs', to: 'release' }
],
notes // markdown annotations with [[node]] references (see the Notes tab)
}