Skip to content

Proposal for image resizing #814

@Baerbeisser

Description

@Baerbeisser

One common issue with i think all (?) implementations of Markdown is resizing of images. Some implementations support using html <img src="source" style="zoom:25%;" />but that's more like a hack out of necessity.

I think Asciidoctor has solved this in a smart way and it would be easy to adopt in Markdown:
![alt,width,height](source) with all places fixed position but optional.

In summary:

  • Positions separated by commata
  • If 1st position is set, it's an alt text.
  • If second position is set, it's image width
  • If third position is set, it's image height

Something like width and height but without alt text, would be ![,width,height](source)
Only alt text would be ![alt](source)

Could this schema be adopted by Commonmark?

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