Skip to content

Commit

Permalink
Merge pull request #1116 from docsifyjs/fix1115
Browse files Browse the repository at this point in the history
[fix #1115] Image resize in % doesn't work.
  • Loading branch information
anikethsaha authored Apr 13, 2020
2 parents 957609a + 517f0d7 commit 39320bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/render/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function getAndRemoveConfig(str = '') {
str = str
.replace(/^'/, '')
.replace(/'$/, '')
.replace(/(?:^|\s):([\w-]+:?)=?([\w-]+)?/g, (m, key, value) => {
.replace(/(?:^|\s):([\w-]+:?)=?([\w-%]+)?/g, (m, key, value) => {
if (key.indexOf(':') === -1) {
config[key] = (value && value.replace(/"/g, '')) || true;
return '';
Expand Down

0 comments on commit 39320bb

Please sign in to comment.