Chobbes / org-chef

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

fix for missing directions from seriouseats #42

Closed bdarcus closed 4 years ago

bdarcus commented 4 years ago

I just installed org-chef and tried to insert at point the first recipe I found, which is this one. Results in an empty directions section.

bdarcus commented 4 years ago

I see the problem, and it's an easy fix.

The class value for the directions changed.

It is now recipe-procedures, while code is the following (so, recipe-procedure-text):

(defun org-chef-serious-eats-extract-directions (dom)
  "Get the directions for a recipe from an seriouseats DOM."
  (mapcar #'(lambda (n) (string-trim (dom-texts (dom-children n))))
          (dom-by-class dom "^recipe-procedure-text$")))