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

Attachment description is not shown #862

Open
GiantCrocodile opened this issue May 12, 2024 · 4 comments
Open

Attachment description is not shown #862

GiantCrocodile opened this issue May 12, 2024 · 4 comments

Comments

@GiantCrocodile
Copy link

GiantCrocodile commented May 12, 2024

Hello,

I'm using v0.7.7 and uploaded a screenshot from my Windows 11 clipboard via CTRL + V. This works fine and the image is shown. Sadly I don't see any description of the image after typing it.

Code:
grafik

When I click out of the block:
grafik

The screenshot afterwards is shown with no issue but the part in the square bracket isn't shown. Sadly I found no information at https://silverbullet.md/Attachments or https://silverbullet.md/Markdown/Basics about the syntax and which of the input fields of this syntactical element means what (I suspect first parameter is the description, second one is the filename).

Let me know if I use it wrong or if this is some issue in silverbullet.md or in the used parser lib.

@GiantCrocodile
Copy link
Author

GiantCrocodile commented May 12, 2024

Nevermind, I just checked it again and it's not about the title nor the description/caption; it's just the alt-tag. Right now, neither a title nor a description/caption is supported right?

@zefhemel
Copy link
Collaborator

Yeah, the meaning of the ![alt text](bla.jpg) is indeed simply used as alt attribute right now (that shows on hover). However, this we could potentially change into putting this alt text underneath the image the image. I personally wouldn't have a problem with that.

@GiantCrocodile
Copy link
Author

Thanks for being open for a change on this @zefhemel. I think both should be possible to be set to different values as it serves different use cases:

  • alt text: describes the image (what you see) for a blind person
  • caption: provides more or different context.

If both tags have the same value, it would mean that blind persons get the same text twice (duplicate content).

@zefhemel
Copy link
Collaborator

How would you specify these things separately using the image syntax, though?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants