-
Notifications
You must be signed in to change notification settings - Fork 4
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 for sel
to select and wrap multiple element results
#10
Conversation
Hmm interesting. I see why you're doing it this way, although I might need a tiny bit of convincing that just concatenating the strings is the right approach... |
We could also do both, and have a |
That's a good idea. And maybe use \n as the join str? |
And how about also having an optional |
Add multi and wrap_tag options
I've implemented both of them. I am not super happy with the code, but I am not sure it can be improved significantly since the wrap_arg injection needs to happen after the HTML to markdown conversion. If you have ways this can be done cleaner, that'd be helpful. |
I'm not super happy with the code either, but I also can't see a better way to do it offhand. So I'll just merge it now, but if you come up with something better later, feel free to put in another PR, of course! :) |
sel
to select and wrap multiple element results
Fix bug in
read_html
.I added tests to ensure it is grabbing something when various selectors are passed.