hackmdio / hackmdio/hackmd-io-issues

Markdown linter and resized images

Open
#394 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
40
Forks
9
PR merge metrics
No merged PRs in 30d

Description

### 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](https://hackmd.io/@docs/insert-image-in-team-note#Specify-proportion):

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

I'm getting the [MD034](https://github.com/DavidAnson/markdownlint/blob/main/doc/md034.md) issue visible in the GUI.

#### Current behaviour

![image](https://github.com/user-attachments/assets/94b28654-ab8f-47da-9b93-0d1cc5b325a9)

Provide steps to reproduce:

1. Write the following text:

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

2. 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.