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

[WIP] feat(index): add parser options {Object} (options.parser) #253

Closed
wants to merge 1 commit into from

Conversation

michael-ciniawsky
Copy link
Member

@michael-ciniawsky michael-ciniawsky commented Dec 27, 2017

Notable Changes

  • Adds support to pass options to the default parser (HTML) {Object}

Issues

  • None

BREAKING CHANGES

  • The posthtml-parser API needs to be curried for this to work (#21)
const parser = require('posthtml-parser')
// From
const tree = parser(html, options)
// To
const tree = parser(options)(html)

@michael-ciniawsky michael-ciniawsky changed the title feat(index): add parser options {Object} (options.parser) [WIP] feat(index): add parser options {Object} (options.parser) Dec 27, 2017
@coveralls
Copy link

coveralls commented Dec 27, 2017

Coverage Status

Coverage decreased (-5.1%) to 94.872% when pulling 5819f4c on feature/parser into 01a3453 on next.

@coveralls
Copy link

coveralls commented Dec 27, 2017

Coverage Status

Coverage decreased (-5.1%) to 94.872% when pulling 5819f4c on feature/parser into 01a3453 on next.

@coveralls
Copy link

coveralls commented Dec 27, 2017

Coverage Status

Coverage decreased (-5.1%) to 94.872% when pulling dcce8de on feature/parser into 01a3453 on next.

@Scrum
Copy link
Member

Scrum commented Jan 26, 2018

@michael-ciniawsky why is this?

@michael-ciniawsky michael-ciniawsky deleted the feature/parser branch June 20, 2018 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants