Skip to content

Markdown linter and resized images #394

Open
@ruzickap

Description

@ruzickap

Is this a hackmd.io issue?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions