hackmd-io-issues icon indicating copy to clipboard operation
hackmd-io-issues copied to clipboard

Markdown linter and resized images

Open ruzickap opened this issue 1 year ago • 0 comments

Is this a hackmd.io issue?

  • [x] Yes, the bug happens on https://hackmd.io
  • [ ] No. If it's a self-hosted CodiMD instance, please fire up the issue in the repo of CodiMD: https://github.com/hackmdio/codimd

What's the problem

Markdown linter marks the resized images as not properly written. If I take the official example:

For example:
![](https://i.imgur.com/zy4JDY4.png =50%x)

I'm getting the MD034 issue visible in the GUI.

Current behaviour

image

Provide steps to reproduce:

  1. Write the following text:
![](https://i.imgur.com/zy4JDY4.png =50%x)
  1. Turn on the "linter"

Expected behaviour

No linter issues in proper Markdown code? Is ![](https://i.imgur.com/zy4JDY4.png =50%x) the proper Markdown code?

i saw the following syntax for making images smaller:

![Kali Linux](https://user-images.githubusercontent.com/45159366/128566095-253303e2-25d8-42f1-a06d-0b38ca079a1a.png){:width="600"}

... which looks like "valid" markdown ...

Environment

I use HackMD on:

Desktop

  • Browser: Chromne
  • Browser Version: 131.0.6778.108

ruzickap avatar Dec 06 '24 06:12 ruzickap