Chobbes / org-chef

A package for making a cookbook and managing recipes with org-mode.
MIT License
327 stars 33 forks source link

fixed an outdated class name on serious-eats-extract-directions #43

Closed bdarcus closed 4 years ago

bdarcus commented 4 years ago

This fixes #42.

I just replaced the old class name with the new one; not sure if you need to account for both?

Chobbes commented 4 years ago

Thanks a bunch :).

bdarcus commented 4 years ago

I think I may have missed something; perhaps just not understanding the lisp code exactly or something.

But the direction element still isn't getting picked up. Here's the HTML code in question:

<div class="recipe-procedures show-large-images">...</div>
bdarcus commented 4 years ago

The problem is the regex is too strict, and assumes a single class on the element. While it will work with simply removing the $ at the end, I think it would be better to remove the ^ at the beginning too?

bdarcus commented 4 years ago

Also, here's the results. Do you have a way to clean up the whitespace and such?

image