Skip to content

Commit 7bbba0c

Browse files
committed
fix(cli): add title for linking MD diagrams
This title is just the `<filename>:<lineno>`, and won't be updated when the diagram is updated, even if the line number and/or filename change in the future.
1 parent ecd9e46 commit 7bbba0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/remark.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function plugin({ client, ...options }: MCPluginOptions) {
5353
case 'link':
5454
node.value = await link(node.value, client, {
5555
cache: options.cache,
56-
title: ``,
56+
title, // TODO: should we update this title in the future, since the filename/line number might change
5757
getProjectId: options.getProjectId,
5858
ignoreAlreadyLinked: true,
5959
});

0 commit comments

Comments
 (0)