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

IMG loses width, height #9

Open
kylecordes opened this issue Feb 28, 2018 · 1 comment
Open

IMG loses width, height #9

kylecordes opened this issue Feb 28, 2018 · 1 comment
Labels

Comments

@kylecordes
Copy link

kylecordes commented Feb 28, 2018

Parsing something like this:

<img src="url1" width="394" height="106" />

Produces output like this:

![](url1)

While it is unpleasant that markdown doesn't have a way to specify width and height, I think it was more useful to (at least optionally) get output like this:

<img src="url1" width="394" height="106" />

(Which is to say, the input).

I hit upon this but working with tools that round-trip between HTML and markdown. This was the simplest common case I found which is "lossy".

(Already tried: { omit: ['img'] })

@jonschlinkert
Copy link
Member

Looks like a bug, I'll get it fixed. Thanks for reporting.

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

No branches or pull requests

2 participants