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

Bug: alias option for codeblocks not work #565

Open
ddosakura opened this issue Aug 19, 2024 · 0 comments
Open

Bug: alias option for codeblocks not work #565

ddosakura opened this issue Aug 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ddosakura
Copy link

ddosakura commented Aug 19, 2024

Describe the bug

The option plugin.settings.views.codeblocks.show_node_options.* not work.

It has not been used:

get_node_label: (node_id, _attr) => {
const file = plugin.app.vault.getFileByPath(node_id);
return file
? plugin.app.fileManager
.generateMarkdownLink(file, source_path)
.slice(2, -2)
: Paths.drop_ext(
Links.resolve_to_absolute_path(
plugin.app,
node_id,
source_path,
),
);
},

To Reproduce

Steps to reproduce the behavior:

  1. set plugin.settings.views.codeblocks.show_node_options.alias = true
type: mermaid
mermaid-direction: TB
show-attributes: [field]
field-groups: [downs, sames]

Expected behavior

display alias in mermaid.


Is it because the Obsidian's Markdownrenderer does not support?

https://help.obsidian.md/Editing+and+formatting/Advanced+formatting+syntax#Linking+files+in+a+diagram

@ddosakura ddosakura added the bug Something isn't working label Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant