Skip to content
Snippets Groups Projects
Commit 65899fe1 authored by tatsy's avatar tatsy
Browse files

Support relative size specification like (=100%x).

parent 78c1c024
Branches
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ function parseNextNumber(str, pos, max) {
code = str.charCodeAt(pos);
while (pos < max && (code >= 0x30 /* 0 */ && code <= 0x39 /* 9 */)) {
while (pos < max && (code >= 0x30 /* 0 */ && code <= 0x39 /* 9 */) || code === 0x25 /* % */) {
code = str.charCodeAt(++pos);
}
......
......@@ -278,6 +278,11 @@ Coverage. Image
.
<p><img src="x" alt="test" width="100" height="200"></p>
.
.
![test](test =100%x)
.
<p><img src="test" alt="test" width="100%"></p>
.
Coverage. Link
.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment