-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Allow pass options to default parser #13
Conversation
Related PR to posthtml-parser - posthtml/posthtml#150 |
posthtml/posthtml#150 (comment) fixed this PR plz |
@voischev that you mean "fixed"? |
module should work like posthtml/posthtml#150 (comment) |
@voischev add wrapper & tests, please check. |
} | ||
|
||
function isObject(o) { | ||
return typeof o === 'object' && !Array.isArray(o); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return o != null && typeof o === 'object' && !Array.isArray(o);
https://github.com/jonschlinkert/isobject/blob/master/index.js#L13
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM |
@voischev good. Now we are waiting approval from other maintainers? |
@kisenka yes. |
Heya, can you please rebase? or squash and rebase? |
Add wrapper over posthtml-parser as requested in posthtml/posthtml/pull/150#issuecomment-232707133; Add tests to cover possible wrapper issues; Add isobject dependency
@zxqfox done, please check |
LGTM |
All checks done, can anybody merge it? |
Oh, right. Sorry 🐱 @voischev Do you mind to publish minor? |
Thanks! 👍 |
Guys, what about minor release? :) |
@voischev ping |
done |
This allows to override posthtml-parser default options (which is actually htmlparser2 parser options) and decrease pain when working with SVG.