Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: Broken GitHub folder onebox logic (discourse#15612)
1. `html_doc.css('.Box.md')` always returns a truthy value (e.g. `[]`) so the second branch of the if-elsif never ran 2. `node&.css('text()')` was invalid code that would raise an error 3. Matching on h3 elements is no longer correct with the current html structure returned by GitHub
- Loading branch information