Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(cli): publish @mermaidchart/cli v0.1.0 #24

Merged
merged 2 commits into from
Apr 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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.
  • Loading branch information
aloisklink committed Apr 22, 2024
commit 7bbba0c2626e39b79fc8e9a71b3beb3ae3e23e48
2 changes: 1 addition & 1 deletion packages/cli/src/remark.ts
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ export function plugin({ client, ...options }: MCPluginOptions) {
case 'link':
node.value = await link(node.value, client, {
cache: options.cache,
title: ``,
title, // TODO: should we update this title in the future, since the filename/line number might change
getProjectId: options.getProjectId,
ignoreAlreadyLinked: true,
});